Skip to content

Commit ecfa610

Browse files
committed
Merge branch 'release/3.51.2'
2 parents e030a49 + 09acc40 commit ecfa610

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

progressbar/__about__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
long running operations.
2020
'''.strip().split())
2121
__email__ = 'wolph@wol.ph'
22-
__version__ = '3.51.1'
22+
__version__ = '3.51.2'
2323
__license__ = 'BSD'
2424
__copyright__ = 'Copyright 2015 Rick van Hattem (Wolph)'
2525
__url__ = 'https://github.com/WoLpH/python-progressbar'

progressbar/bar.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -729,10 +729,16 @@ def start(self, max_value=None, init=True):
729729
if self.prefix:
730730
self.widgets.insert(0, widgets.FormatLabel(
731731
self.prefix, new_style=True))
732+
# Unset the prefix variable after applying so an extra start()
733+
# won't keep copying it
734+
self.prefix = None
732735

733736
if self.suffix:
734737
self.widgets.append(widgets.FormatLabel(
735738
self.suffix, new_style=True))
739+
# Unset the suffix variable after applying so an extra start()
740+
# won't keep copying it
741+
self.suffix = None
736742

737743
for widget in self.widgets:
738744
interval = getattr(widget, 'INTERVAL', None)

0 commit comments

Comments
 (0)