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 benjamin.peterson
Recipients benjamin.peterson, orsenthil
Date 2009-04-02.20:31:30
SpamBayes Score 0.0013907471
Marked as misclassified No
Message-id <[email protected]>
In-reply-to <[email protected]>
Content
2009/4/1 Senthil <[email protected]>:
>
> New submission from Senthil <[email protected]>:
>
> 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.
History
Date User Action Args
2009-04-02 20:31:31benjamin.petersonsetrecipients: + benjamin.peterson, orsenthil
2009-04-02 20:31:30benjamin.petersonlinkissue5664 messages
2009-04-02 20:31:30benjamin.petersoncreate