1010
1111import pip .wheel
1212from pip ._vendor import pkg_resources , six
13- from pip .compat import (
14- urllib , ConfigParser , string_types ,
15- )
13+ from pip ._vendor .six .moves import configparser
14+ from pip .compat import urllib
1615from pip .download import is_url , url_to_path , path_to_url , is_archive_file
1716from pip .exceptions import (
1817 InstallationError , UninstallationError , UnsupportedWheel ,
@@ -38,7 +37,7 @@ def __init__(self, req, comes_from, source_dir=None, editable=False,
3837 url = None , as_egg = False , update = True , prereleases = None ,
3938 editable_options = None , pycompile = True ):
4039 self .extras = ()
41- if isinstance (req , string_types ):
40+ if isinstance (req , six . string_types ):
4241 req = pkg_resources .Requirement .parse (req )
4342 self .extras = req .extras
4443 self .req = req
@@ -168,7 +167,7 @@ def __str__(self):
168167 if self .satisfied_by is not None :
169168 s += ' in %s' % display_path (self .satisfied_by .location )
170169 if self .comes_from :
171- if isinstance (self .comes_from , string_types ):
170+ if isinstance (self .comes_from , six . string_types ):
172171 comes_from = self .comes_from
173172 else :
174173 comes_from = self .comes_from .from_path ()
@@ -181,7 +180,7 @@ def from_path(self):
181180 return None
182181 s = str (self .req )
183182 if self .comes_from :
184- if isinstance (self .comes_from , string_types ):
183+ if isinstance (self .comes_from , six . string_types ):
185184 comes_from = self .comes_from
186185 else :
187186 comes_from = self .comes_from .from_path ()
@@ -619,7 +618,7 @@ def uninstall(self, auto_confirm=False):
619618
620619 # find console_scripts
621620 if dist .has_metadata ('entry_points.txt' ):
622- config = ConfigParser .SafeConfigParser ()
621+ config = configparser .SafeConfigParser ()
623622 config .readfp (
624623 FakeFile (dist .get_metadata_lines ('entry_points.txt' ))
625624 )
0 commit comments