Skip to content

Commit

Permalink
Merge pull request conda#7146 from Bezier89/patch-2
Browse files Browse the repository at this point in the history
progress bar uses stderr instead of stdout
  • Loading branch information
kalefranz authored Apr 12, 2018
2 parents 9ff2d67 + b9318be commit 68e5479
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion conda/common/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,8 @@ def __init__(self, description, enabled=True, json=False):
elif enabled:
bar_format = "{desc}{bar} | {percentage:3.0f}% "
try:
self.pbar = tqdm(desc=description, bar_format=bar_format, ascii=True, total=1)
self.pbar = tqdm(desc=description, bar_format=bar_format, ascii=True, total=1,
file=sys.stdout)
except EnvironmentError as e:
if e.errno in (EPIPE, ESHUTDOWN):
self.enabled = False
Expand Down

0 comments on commit 68e5479

Please sign in to comment.