PyCQA / modernize

Modernizes Python code for eventual Python 3 migration. Built on top of fissix (a fork of lib2to3)
https://modernize.readthedocs.org/
Other
353 stars 51 forks source link

"urllib_six" fixers acts incorrectly when a symbol called "urllib" is imported which is not stdlib's urllib #182

Open benbariteau opened 5 years ago

benbariteau commented 5 years ago

Given:

from foo import urllib
...
urllib.unquote(...)

The following transformation occurs:

six.moves.urllib.parse.unquote(...)