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 orsenthil
Recipients benjamin.peterson, orsenthil
Date 2009-11-22.15:40:32
SpamBayes Score 0.0030085368
Marked as misclassified No
Message-id <1258904433.77.0.0888742690092.issue7375@psf.upfronthosting.co.za>
In-reply-to
Content
2.x code:

import urllib2
opener = urllib2.build_opener(urllib2.HTTPHandler(debuglevel=1))

2to3 on this would result in:

import urllib.request, urllib.error, urllib.parse
opener = urllib.request.build_opener(urllib2.HTTPHandler(debuglevel=1))

which is wrong. It did not translate the urllib2 in argument.
History
Date User Action Args
2009-11-22 15:40:33orsenthilsetrecipients: + orsenthil, benjamin.peterson
2009-11-22 15:40:33orsenthilsetmessageid: <1258904433.77.0.0888742690092.issue7375@psf.upfronthosting.co.za>
2009-11-22 15:40:32orsenthillinkissue7375 messages
2009-11-22 15:40:32orsenthilcreate