mirror of https://github.com/tqdm/tqdm.git
'Refactored by Sourcery'
This commit is contained in:
parent
1dcc22d0ba
commit
a1fbe3af6a
|
@ -1165,8 +1165,7 @@ class tqdm(Comparable):
|
||||||
# If the bar is disabled, then just walk the iterable
|
# If the bar is disabled, then just walk the iterable
|
||||||
# (note: keep this check outside the loop for performance)
|
# (note: keep this check outside the loop for performance)
|
||||||
if self.disable:
|
if self.disable:
|
||||||
for obj in iterable:
|
yield from iterable
|
||||||
yield obj
|
|
||||||
return
|
return
|
||||||
|
|
||||||
mininterval = self.mininterval
|
mininterval = self.mininterval
|
||||||
|
|
Loading…
Reference in New Issue