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
|
d['ncols'] = None
|
||||||
text = self.format_meter(**d)
|
text = self.format_meter(**d)
|
||||||
# fixup only default bar format
|
# fixup only default bar format
|
||||||
if self.bar_format == "{l_bar}{r_bar}":
|
self._tk_text_var.set(
|
||||||
text = text.replace("||", "", 1)
|
text.replace("||", "", 1) if "{l_bar}{r_bar}" in self.bar_format else text)
|
||||||
self._tk_text_var.set(text)
|
|
||||||
if not self._tk_dispatching:
|
if not self._tk_dispatching:
|
||||||
self._tk_window.update()
|
self._tk_window.update()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue