mirror of
https://github.com/verigak/progress.git
synced 2025-12-08 19:33:24 +00:00
Fold the mixins in __init__.py
The 2 mixins were almost the same, simplify the codebase by merging them in.
This commit is contained in:
@@ -35,12 +35,10 @@ for bar_cls in (IncrementalBar, PixelBar, ShadyBar):
|
||||
for spin in (Spinner, PieSpinner, MoonSpinner, LineSpinner, PixelSpinner):
|
||||
for i in spin(spin.__name__ + ' ').iter(range(100)):
|
||||
sleep()
|
||||
print()
|
||||
|
||||
for singleton in (Counter, Countdown, Stack, Pie):
|
||||
for i in singleton(singleton.__name__ + ' ').iter(range(100)):
|
||||
sleep()
|
||||
print()
|
||||
|
||||
bar = IncrementalBar('Random', suffix='%(index)d')
|
||||
for i in range(100):
|
||||
|
||||
Reference in New Issue
Block a user