2to3 urllib.URLopener -> urllib.request.URLopener

Discussion in 'Python' started by Chris McDonald, Nov 1, 2010.

  1. Howdy,

    I was going through, evaluating how hard a project would be to move
    over to a hybrid codebase of python2 and python3 using 2to3. I found
    that while it would convert most other urllib renames and moves, 2to3
    currently leaves urllib.URLopener as is, instead of changing it to go
    via the request module.

    Not sure if this is a bug or intended, so thought I'd bring it up to the list.

    -Chris 'Wraithan' McDonald
     
    Chris McDonald, Nov 1, 2010
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Bakker A
    Replies:
    2
    Views:
    277
    Bakker A
    Oct 6, 2006
  2. Robin Becker

    2to3.py download

    Robin Becker, Feb 12, 2008, in forum: Python
    Replies:
    0
    Views:
    670
    Robin Becker
    Feb 12, 2008
  3. Jonathan Gardner

    Asynchronous urllib (urllib+asyncore)?

    Jonathan Gardner, Feb 26, 2008, in forum: Python
    Replies:
    1
    Views:
    473
    Terry Jones
    Feb 27, 2008
  4. Johannes Kleese
    Replies:
    4
    Views:
    264
    Terry Reedy
    Nov 27, 2012
  5. Terry Reedy
    Replies:
    0
    Views:
    358
    Terry Reedy
    Nov 13, 2012
Loading...

Share This Page