PyCQA / modernize

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

Redundant imports are inserted for import six.moves.urllib.error + request #196

Open belugame opened 5 years ago

belugame commented 5 years ago

In a low number of my big project modernize inserts redundant imports for modules that are not used in the file. E.g. these three imports are added while only parse is actually needed

import six.moves.urllib.error
import six.moves.urllib.parse
import six.moves.urllib.request