mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 08:24:40 +01:00
Simplify Env.__repr__. This prevents the whole environment dictionary from being printed when the repr is called.
This commit is contained in:
parent
a00775bae2
commit
c557aeaefc
1 changed files with 1 additions and 1 deletions
|
@ -784,7 +784,7 @@ class Env(MutableMapping):
|
|||
return str(self._d)
|
||||
|
||||
def __repr__(self):
|
||||
return '{0}.{1}({2})'.format(self.__class__.__module__,
|
||||
return '{0}.{1}(...)'.format(self.__class__.__module__,
|
||||
self.__class__.__name__, self._d)
|
||||
|
||||
def _repr_pretty_(self, p, cycle):
|
||||
|
|
Loading…
Add table
Reference in a new issue