Skip to content

Commit

Permalink
conda/pip.py: Use splitlines to break up multiple lines. This behav…
Browse files Browse the repository at this point in the history
…es better on different platforms and formats (e.g. Unicode and ASCII).
  • Loading branch information
jakirkham committed Aug 18, 2015
1 parent 3691301 commit c3a7a84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conda/pip.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def installed(prefix, output=True):
try:
pipinst = subprocess.check_output(
args, universal_newlines=True
).split('\n')
).splitlines()
except Exception:
# Any error should just be ignored
if output:
Expand Down

0 comments on commit c3a7a84

Please sign in to comment.