mirror of https://github.com/pypa/pip
Merge pull request #7732 from KOLANICH/__repr___for_Configuration
Added __repr__ for Configuration
This commit is contained in:
commit
ba9218dde7
|
@ -0,0 +1 @@
|
|||
Added ``__repr__`` for ``Configuration`` to make debugging a bit easier.
|
|
@ -420,3 +420,7 @@ class Configuration(object):
|
|||
file_parser_tuple = (fname, parser)
|
||||
if file_parser_tuple not in self._modified_parsers:
|
||||
self._modified_parsers.append(file_parser_tuple)
|
||||
|
||||
def __repr__(self):
|
||||
# type: () -> str
|
||||
return "{}({!r})".format(self.__class__.__name__, self._dictionary)
|
||||
|
|
Loading…
Reference in New Issue