fix pylint: C0104: Disallowed name "bar" (disallowed-name)

This commit is contained in:
Hans-Christoph Steiner 2023-02-02 16:01:00 +01:00
parent 9d2cc1ecc5
commit 75bf953c80
1 changed files with 3 additions and 3 deletions

View File

@ -430,12 +430,12 @@ def update_servergitmirrors(servergitmirrors, repo_section):
repo.index.commit("fdroidserver git-mirror")
if options.verbose:
bar = progress.Bar()
progressbar = progress.Bar()
class MyProgressPrinter(git.RemoteProgress):
def update(self, op_code, current, maximum=None, message=None):
if isinstance(maximum, float):
bar.show(current, maximum)
progressbar.show(current, maximum)
progress = MyProgressPrinter()
else:
progress = None
@ -497,7 +497,7 @@ def update_servergitmirrors(servergitmirrors, repo_section):
logging.debug(remote.url + ': ' + pushinfo.summary)
if progress:
bar.done()
progressbar.done()
def upload_to_android_observatory(repo_section):