Skip to content

Commit

Permalink
Added os.getcwdu. This fixes #1219 (necessary for Django 1.0.2
Browse files Browse the repository at this point in the history
support), but not the larger question of better Unicode handling in
the os module, specifically around os.path.
  • Loading branch information
jimbaker committed Jan 20, 2009
1 parent 24b478b commit 18a01f7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Lib/os.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,13 @@ def getcwd():
"""
return asPyString(sys.getCurrentWorkingDir())

def getcwdu():
"""getcwd() -> path
Return a unicode string representing the current working directory.
"""
return sys.getCurrentWorkingDir()

def chdir(path):
"""chdir(path)
Expand Down

0 comments on commit 18a01f7

Please sign in to comment.