[elbe-devel] [PATCH v3 5/8] pylint cdroms: cleanup
Torben Hohn
torben.hohn at linutronix.de
Mon Oct 15 15:18:03 CEST 2018
pylint complains:
elbepack/cdroms.py:43:8: E714 test for object identity should be 'is not'
elbepack/cdroms.py:44:40: E211 whitespace before '('
elbepack/cdroms.py:46:15: E225 missing whitespace around operator
fix em
---
elbepack/cdroms.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/elbepack/cdroms.py b/elbepack/cdroms.py
index d7207e44..9684e12f 100644
--- a/elbepack/cdroms.py
+++ b/elbepack/cdroms.py
@@ -40,10 +40,10 @@ def mk_source_cdrom(
hostfs.mkdir_p('/var/cache/elbe/sources')
rfs.mkdir_p('/var/cache/elbe/sources')
- if not xml is None:
- mirror = xml.get_primary_mirror (rfs.fname("cdrom"))
+ if xml is not None:
+ mirror = xml.get_primary_mirror(rfs.fname("cdrom"))
else:
- mirror='http://ftp.de.debian.org/debian'
+ mirror = 'http://ftp.de.debian.org/debian'
repo = CdromSrcRepo(codename, init_codename,
os.path.join(target, "srcrepo"),
--
2.11.0
More information about the elbe-devel
mailing list