[issue4023] convert os.getcwdu() to os.getcwd(), and getcwdu() to getcwd()
report at bugs.python.org
Fri Oct 3 12:29:36 CEST 2008
STINNER Victor <victor.stinner at haypocalc.com> added the comment:
Le Friday 03 October 2008 04:44:13 Benjamin Peterson, vous avez écrit :
> You're patch looks pretty good. Could you write tests for it, though?
My patch doesn't work, that's why I don't write unit test :-)
- os.getcwdu() was correctly replaced
- getcwdu() was also replaced
- but not "from os import getcwdu"
Since most people use os.getcwdu(), and that 2to3 is unable to make sure that
getcwdu() comes from os or is an user defined module, I prefer to only keep
the first fixer (os.getcwdu() => os.getcwd()). The new patch include a test.
(Let's try Roundup by email using an attachment :-))
Added file: http://bugs.python.org/file11691/fix_getcwdu-2.patch
Python tracker <report at bugs.python.org>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
More information about the Python-bugs-list