Message74211
Python3 removes os.getcwdu() and introduces os.getcwdb(). The patch is
a fixer for lib2to3 replacing "os.getcwdu()" to "os.getcwd()",
and "getcwdu()" to "getcwd()". I hope that nobody defined its
own "getcwdu()" function :-)
Example:
----
cwd = os.getcwdu()
print "cwd=%s" % cwd
from os import getcwdu
cwd = getcwdu()
print "cwd=%s" % cwd
----
Result:
-----
import os
-cwd = os.getcwdu()
-print "cwd=%s" % cwd
+cwd = os.getcwd()
+print("cwd=%s" % cwd)
-from os import getcwdu
-cwd = getcwdu()
-print "cwd=%s" % cwd
+from os import getcwd
+cwd = getcwd()
+print("cwd=%s" % cwd)
----- |
|
Date |
User |
Action |
Args |
2008-10-02 23:22:19 | vstinner | set | recipients:
+ vstinner, benjamin.peterson |
2008-10-02 23:22:19 | vstinner | set | messageid: <1222989739.85.0.364233815039.issue4023@psf.upfronthosting.co.za> |
2008-10-02 23:22:18 | vstinner | link | issue4023 messages |
2008-10-02 23:22:18 | vstinner | create | |
|