1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-20 13:50:12 +01:00

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

View File

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