mirror of https://github.com/tqdm/tqdm.git
Merge branch 'no_instances_write_fix'
This commit is contained in:
commit
92f5e938aa
|
@ -308,7 +308,7 @@ class tqdm(object):
|
|||
|
||||
# Clear all bars
|
||||
inst_cleared = []
|
||||
for inst in cls._instances:
|
||||
for inst in getattr(cls, '_instances', []):
|
||||
# Clear instance if in the target output file
|
||||
# or if write output + tqdm output are both either
|
||||
# sys.stdout or sys.stderr (because both are mixed in terminal)
|
||||
|
|
Loading…
Reference in New Issue