diff --git a/progress/__init__.py b/progress/__init__.py index 596eea7..96b5d32 100644 --- a/progress/__init__.py +++ b/progress/__init__.py @@ -18,7 +18,7 @@ from collections import deque from datetime import timedelta from math import ceil -from sys import stderr +import sys try: from time import monotonic except ImportError: @@ -32,12 +32,12 @@ class Infinite(object): - file = stderr sma_window = 10 # Simple Moving Average window check_tty = True hide_cursor = True def __init__(self, message='', **kwargs): + self.file = sys.stderr self.index = 0 self.start_ts = monotonic() self.avg = 0