
report at bugs
Nov 22, 2009, 7:40 AM
Post #1 of 3
(133 views)
Permalink
|
|
[issue7375] 2to3 - does not translate urllib2 to urllib.request correctly for function/method argument
|
|
New submission from Senthil Kumaran <orsenthil [at] gmail>: 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. ---------- assignee: benjamin.peterson messages: 95602 nosy: benjamin.peterson, orsenthil priority: normal severity: normal status: open title: 2to3 - does not translate urllib2 to urllib.request correctly for function/method argument type: behavior _______________________________________ Python tracker <report [at] bugs> <http://bugs.python.org/issue7375> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
|