Show More
@@ -84,9 +84,9 b' except NameError:' | |||||
84 | unicode = str |
|
84 | unicode = str | |
85 |
|
85 | |||
86 | try: |
|
86 | try: | |
87 | os.getcwdu |
|
87 | getcwdu = os.getcwdu | |
88 | except AttributeError: |
|
88 | except AttributeError: | |
89 |
|
|
89 | getcwdu = os.getcwd | |
90 |
|
90 | |||
91 | if sys.version < '3': |
|
91 | if sys.version < '3': | |
92 | def u(x): |
|
92 | def u(x): | |
@@ -214,7 +214,7 b' class path(unicode):' | |||||
214 | @classmethod |
|
214 | @classmethod | |
215 | def getcwd(cls): |
|
215 | def getcwd(cls): | |
216 | """ Return the current working directory as a path object. """ |
|
216 | """ Return the current working directory as a path object. """ | |
217 |
return cls( |
|
217 | return cls(getcwdu()) | |
218 |
|
218 | |||
219 | # |
|
219 | # | |
220 | # --- Operations on path strings. |
|
220 | # --- Operations on path strings. |
General Comments 0
You need to be logged in to leave comments.
Login now