Skip to content

Commit

Permalink
Use the new getcwdu on POSIXHandler, to avoid unnecesary conversions …
Browse files Browse the repository at this point in the history
…from unicode to bytestring. Also added getcwdu to os.__all__
  • Loading branch information
leosoto committed Jan 20, 2009
1 parent 18a01f7 commit 9b57cd7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Lib/os.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
'O_RDWR', 'O_SYNC', 'O_TRUNC', 'O_WRONLY', 'R_OK', 'SEEK_CUR',
'SEEK_END', 'SEEK_SET', 'W_OK', 'X_OK', '_exit', 'access',
'altsep', 'chdir', 'chmod', 'close', 'curdir', 'defpath',
'environ', 'error', 'fdopen', 'getcwd', 'getegid', 'getenv',
'geteuid', 'getgid', 'getlogin', 'getlogin', 'getpgrp',
'environ', 'error', 'fdopen', 'getcwd', 'getcwdu', 'getegid',
'getenv','geteuid', 'getgid', 'getlogin', 'getlogin', 'getpgrp',
'getpid', 'getppid', 'getuid', 'isatty', 'linesep', 'listdir',
'lseek', 'lstat', 'makedirs', 'mkdir', 'name', 'open', 'pardir',
'path', 'pathsep', 'popen', 'popen2', 'popen3', 'popen4',
Expand Down Expand Up @@ -118,7 +118,7 @@ def warn(self, warning_id, msg, rest):
def isVerbose(self):
return False
def getCurrentWorkingDirectory(self):
return File(getcwd())
return File(getcwdu())
def getEnv(self):
return ['%s=%s' % (key, val) for key, val in environ.iteritems()]
def getInputStream(self):
Expand Down

0 comments on commit 9b57cd7

Please sign in to comment.