modernize
modernize copied to clipboard
use six.moves to handle imports from urllib, urllib2 and urlparse
E.g.
from urlparse import ParseResult
=>
from six.moves.urllib.parse import ParseResult
and
import urlparse
urlparse.ParseResult
=>
import six.moves.urllib.parse as urlparse
urlparse.ParseResult
Do want