Benjamin Peterson <benja...@python.org> added the comment: 2009/4/1 Senthil <rep...@bugs.python.org>: > > New submission from Senthil <orsent...@gmail.com>: > > In 2.7 code have: > import Cookie > c = Cookie.Cookie('abc') > > 2to3 would do: > c = http.cookies.Cookie('abc') > > This is wrong as there is no class as Cookie in http.cookies. It should > translated to be http.cookies.SimpleCookie.
That's unfortunate. I suppose a new custom fixer will have to be written for Cookie now. ---------- _______________________________________ 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