Better repr for shells.Shell

This commit is contained in:
Tzu-ping Chung
2018-07-04 19:38:16 +08:00
parent 63f6f41fe6
commit cc4f3cfb63
+6
View File
@@ -68,6 +68,12 @@ class Shell(object):
self.cmd = cmd
self.args = []
def __repr__(self):
return '{type}(cmd={cmd!r})'.format(
type=type(self).__name__,
cmd=self.cmd,
)
@contextlib.contextmanager
def inject_path(self, venv):
with temp_environ():