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:
parent
9d2cc1ecc5
commit
75bf953c80
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user