This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients benjamin.peterson, vstinner
Date 2008-10-02.23:22:18
SpamBayes Score 0.00027952206
Marked as misclassified No
Message-id <1222989739.85.0.364233815039.issue4023@psf.upfronthosting.co.za>
In-reply-to
Content
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)
-----
History
Date User Action Args
2008-10-02 23:22:19vstinnersetrecipients: + vstinner, benjamin.peterson
2008-10-02 23:22:19vstinnersetmessageid: <1222989739.85.0.364233815039.issue4023@psf.upfronthosting.co.za>
2008-10-02 23:22:18vstinnerlinkissue4023 messages
2008-10-02 23:22:18vstinnercreate