mirror of https://github.com/tqdm/tqdm.git
more pipe removal
This commit is contained in:
parent
13ccf1d5f5
commit
6fb8cc8e1c
|
@ -143,9 +143,8 @@ class tqdm_tk(std_tqdm): # pragma: no cover
|
|||
d['ncols'] = None
|
||||
text = self.format_meter(**d)
|
||||
# fixup only default bar format
|
||||
if self.bar_format == "{l_bar}{r_bar}":
|
||||
text = text.replace("||", "", 1)
|
||||
self._tk_text_var.set(text)
|
||||
self._tk_text_var.set(
|
||||
text.replace("||", "", 1) if "{l_bar}{r_bar}" in self.bar_format else text)
|
||||
if not self._tk_dispatching:
|
||||
self._tk_window.update()
|
||||
|
||||
|
|
Loading…
Reference in New Issue