Skip to content

Commit

Permalink
Better repr for shells.Shell
Browse files Browse the repository at this point in the history
  • Loading branch information
uranusjr committed Jul 4, 2018
1 parent fcbda18 commit bab691f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pipenv/shells.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit bab691f

Please sign in to comment.