From cc4f3cfb63c45ae88a0a75a876c16c948a3e58da Mon Sep 17 00:00:00 2001 From: Tzu-ping Chung Date: Wed, 4 Jul 2018 19:38:16 +0800 Subject: [PATCH] Better repr for shells.Shell --- pipenv/shells.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pipenv/shells.py b/pipenv/shells.py index 655c56cc00..5961310c34 100644 --- a/pipenv/shells.py +++ b/pipenv/shells.py @@ -68,6 +68,12 @@ def __init__(self, cmd): 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():