[elbe-devel] [PATCH 11/13] pylint: fix using variable before assignment
Manuel Traut
manut at linutronix.de
Wed Aug 29 21:07:32 CEST 2018
initialize number of retries with a sane value
Signed-off-by: Manuel Traut <manut at linutronix.de>
---
elbepack/commands/mkcdrom.py | 6 ------
elbepack/soapclient.py | 1 +
2 files changed, 1 insertion(+), 6 deletions(-)
diff --git a/elbepack/commands/mkcdrom.py b/elbepack/commands/mkcdrom.py
index db2f8d82..f00e9645 100644
--- a/elbepack/commands/mkcdrom.py
+++ b/elbepack/commands/mkcdrom.py
@@ -81,9 +81,6 @@ def run_command(argv):
else:
builddir = os.path.abspath(os.path.curdir)
rfs = ChRootFilesystem(args[0])
- # pylint: disable=redefined-variable-type
- # this is a pylint issue fixed in
- # 05d4e517bba0adbd3dc5ad3fa79746dc8ed9f9a3
arch = opt.arch
codename = opt.codename
init_codename = opt.init_codename
@@ -92,9 +89,6 @@ def run_command(argv):
log = ASCIIDocLog(opt.log)
else:
log = StdoutLog()
- # pylint: disable=redefined-variable-type
- # this is a pylint issue fixed in
- # 05d4e517bba0adbd3dc5ad3fa79746dc8ed9f9a3
generated_files = []
if opt.source:
diff --git a/elbepack/soapclient.py b/elbepack/soapclient.py
index 7893d170..3e231414 100644
--- a/elbepack/soapclient.py
+++ b/elbepack/soapclient.py
@@ -85,6 +85,7 @@ class ElbeSoapClient(object):
def download_file(self, builddir, filename, dst_fname):
fp = file(dst_fname, "w")
part = 0
+ retry = 10
while True:
try:
--
2.18.0
More information about the elbe-devel
mailing list