mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-10-03 17:50:11 +02:00
fix pylint: C0104: Disallowed name "bar" (disallowed-name)
This commit is contained in:
parent
9d2cc1ecc5
commit
75bf953c80
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user