New submission from Nick Edds <[EMAIL PROTECTED]>: Here is my proposed fix_urllib. The transform function is massive because there are a lot of cases, so maybe I should break it into separate functions for each case, and it could maybe do with some more documentation as well. I also use FromImport from fixer_util.py even though it warns against doing so for dotted imports because it appears to work. The temp.py file is a dummy python file that you can test it on to get an idea of what it does. I think it's got all the desired functionality, but I'm not an expert on the urllib changes so let me know if I missed anything. I haven't written tests for it yet, but assuming it looks reasonable, I can do that later today or tomorrow.
---------- assignee: collinwinter components: 2to3 (2.x to 3.0 conversion tool) files: fix_urllib.diff keywords: patch messages: 69395 nosy: brett.cannon, collinwinter, nedds severity: normal status: open title: Proposal for fix_urllib Added file: http://bugs.python.org/file10845/fix_urllib.diff _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3316> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com