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:
Georgios Verigakis
2018-09-13 10:34:24 +03:00
parent d407334bcf
commit d9d40736d6
6 changed files with 47 additions and 93 deletions

View File

@@ -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):