Senthil Kumaran added the comment:

Not actually, It is still translating to http.cookies.Cookie - which does not 
exist.

$ ./cpythonvenv/bin/2to3-3.4 bug-fixes/test1.py
RefactoringTool: Refactored bug-fixes/test1.py
--- bug-fixes/test1.py  (original)
+++ bug-fixes/test1.py  (refactored)
@@ -1,2 +1,2 @@
-import Cookie
-c = Cookie.Cookie('abc')
+import http.cookies
+c = http.cookies.Cookie('abc')

BTW, Cookie.Cookie is a deprecated interface so there is a possibility that 
only small portion of the real world code which has not updated their Python 
stdlib idioms since (Python 2.2/Python2.4?) would see this bug manifested.

[Note: Long-time users of Cookie.py will remember using
Cookie.Cookie() to create an Cookie object.  Although deprecated, it
is still supported by the code.  See the Backward Compatibility notes
for more information.]

----------
versions: +Python 3.4 -Python 3.1

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue5664>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to