Simplify Env.__repr__. This prevents the whole environment dictionary from being printed when the repr is called.

This commit is contained in:
Morten Enemark Lund 2016-06-14 20:28:51 +02:00
parent a00775bae2
commit c557aeaefc

View file

@ -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):