[New-bugs-announce] [issue5664] 2to3 wont convert Cookie.Cookie properly

Senthil report at bugs.python.org
Thu Apr 2 05:22:48 CEST 2009


New submission from Senthil <orsenthil at 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.

----------
assignee: benjamin.peterson
components: 2to3 (2.x to 3.0 conversion tool)
messages: 85151
nosy: benjamin.peterson, orsenthil
severity: normal
status: open
title: 2to3 wont convert Cookie.Cookie properly
type: behavior
versions: Python 3.1

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5664>
_______________________________________


More information about the New-bugs-announce mailing list