Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Bugs

[issue7375] 2to3 - does not translate urllib2 to urllib.request correctly for function/method argument

 

 

Python bugs RSS feed   Index | Next | Previous | View Threaded


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


report at bugs

Nov 22, 2009, 7:40 AM

Post #2 of 3 (130 views)
Permalink
[issue7375] 2to3 - does not translate urllib2 to urllib.request correctly for function/method argument [In reply to]

Changes by Senthil Kumaran <orsenthil [at] gmail>:


----------
components: +2to3 (2.x to 3.0 conversion tool)

_______________________________________
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


report at bugs

Nov 22, 2009, 4:17 PM

Post #3 of 3 (120 views)
Permalink
[issue7375] 2to3 - does not translate urllib2 to urllib.request correctly for function/method argument [In reply to]

Benjamin Peterson <benjamin [at] python> added the comment:

Fixed in r76447.

----------
resolution: -> fixed
status: open -> closed

_______________________________________
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

Python bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.