Skip to content

Commit

Permalink
Removed universal newline + shell=true
Browse files Browse the repository at this point in the history
  • Loading branch information
gtalarico committed May 12, 2018
1 parent 80aea53 commit 55a018d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pipenv_pipes/pipenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,14 @@ def PipedPopen(cmds, **kwargs):
timeout = kwargs.pop('timeout', None)
env = kwargs.pop('env', dict(os.environ))
proc = Popen(
' '.join(cmds),
cmds,
stdout=PIPE,
stderr=PIPE,
universal_newlines=True,
env=env,
shell=True,
**kwargs
)
out, err = proc.communicate(timeout=timeout)
output = out.strip() or err.strip()
output = out.decode().strip() or err.decode().strip()
code = proc.returncode
return output.strip(), code

Expand Down

0 comments on commit 55a018d

Please sign in to comment.