Skip to content

Commit

Permalink
ProgressBar should use stderr by default
Browse files Browse the repository at this point in the history
  • Loading branch information
georgeyk committed Oct 1, 2017
1 parent 752ff79 commit bff8fc9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions click/_termui_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
import sys
import time
import math
from ._compat import _default_text_stdout, range_type, PY2, isatty, \
open_stream, strip_ansi, term_len, get_best_encoding, WIN, int_types, \
CYGWIN
from ._compat import _default_text_stdout, _default_text_stderr, range_type, \
PY2, isatty, open_stream, strip_ansi, term_len, get_best_encoding, WIN, \
int_types, CYGWIN
from .utils import echo
from .exceptions import ClickException

Expand Down Expand Up @@ -64,7 +64,7 @@ def __init__(self, iterable, length=None, fill_char='#', empty_char=' ',
self.item_show_func = item_show_func
self.label = label or ''
if file is None:
file = _default_text_stdout()
file = _default_text_stderr()
self.file = file
self.color = color
self.width = width
Expand Down

0 comments on commit bff8fc9

Please sign in to comment.