diff --git a/tqdm/_tqdm.py b/tqdm/_tqdm.py index 42c9d84d..e3da1a7d 100644 --- a/tqdm/_tqdm.py +++ b/tqdm/_tqdm.py @@ -182,7 +182,7 @@ def tqdm(iterable, desc=None, total=None, leave=False, file=sys.stderr, dynamic_miniters = False if ascii is None: - ascii = _supports_unicode(file) + ascii = not _supports_unicode(file) prefix = desc+': ' if desc else ''