Skip to content

Commit af8bf1f

Browse files
committed
Revert "Fix using incorrect hidden property on ProgressBar instance"
This reverts commit 13f2add. Signed-off-by: Theodore Aptekarev <[email protected]>
1 parent 8150cd4 commit af8bf1f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/commoncode/cliutils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def make_step(self, n_steps):
177177
# overriden and copied from Click to work around Click woes for
178178
# https://github.com/aboutcode-org/scancode-toolkit/issues/2583
179179
def generator(self):
180-
if self.hidden:
180+
if self.is_hidden:
181181
yield from self.iter
182182
else:
183183
for rv in self.iter:
@@ -196,7 +196,7 @@ class EnhancedProgressBar(DebuggedProgressBar):
196196
"""
197197

198198
def render_progress(self):
199-
if not self.hidden:
199+
if not self.is_hidden:
200200
return super(EnhancedProgressBar, self).render_progress()
201201

202202

@@ -217,7 +217,7 @@ class ProgressLogger(ProgressBar):
217217

218218
def __init__(self, *args, **kwargs):
219219
super(ProgressLogger, self).__init__(*args, **kwargs)
220-
self.hidden = False
220+
self.is_hidden = False
221221

222222
def render_progress(self):
223223
line = self.format_progress_line()

0 commit comments

Comments
 (0)