[neon/forks/ubuntu-release-upgrader/Neon/unstable_focal] DistUpgrade: Resolve pycodestyle issues
Brian Murray
null at kde.org
Wed Apr 28 11:06:46 BST 2021
Git commit d70708a92846d167edafc899653c291783148a3f by Brian Murray.
Committed on 13/04/2021 at 18:34.
Pushed by jriddell into branch 'Neon/unstable_focal'.
Resolve pycodestyle issues
M +3 -3 DistUpgrade/DistUpgradeQuirks.py
https://invent.kde.org/neon/forks/ubuntu-release-upgrader/commit/d70708a92846d167edafc899653c291783148a3f
diff --git a/DistUpgrade/DistUpgradeQuirks.py b/DistUpgrade/DistUpgradeQuirks.py
index 11877e05..d1d204a5 100644
--- a/DistUpgrade/DistUpgradeQuirks.py
+++ b/DistUpgrade/DistUpgradeQuirks.py
@@ -971,7 +971,7 @@ class DistUpgradeQuirks(object):
if metapkg not in self.controller.cache:
continue
if metapkg and \
- self.controller.cache[metapkg].is_installed == False:
+ self.controller.cache[metapkg].is_installed is False:
continue
deb = seed.get("deb", None)
from_chan = seed.get("from_channel", from_channel)
@@ -985,7 +985,7 @@ class DistUpgradeQuirks(object):
if metapkg not in self.controller.cache:
continue
if metapkg and \
- self.controller.cache[metapkg].is_installed == False:
+ self.controller.cache[metapkg].is_installed is False:
continue
from_chan = unseed.get("from_channel", from_channel)
unseeded_snaps[snap] = (deb, from_chan)
@@ -997,7 +997,7 @@ class DistUpgradeQuirks(object):
universal_newlines=True,
stdout=subprocess.PIPE).communicate()
# first line of output is a header and the last line is empty
- snaps_installed = [line.split()[0] \
+ snaps_installed = [line.split()[0]
for line in snap_list[0].split('\n')[1:-1]]
for snap in snaps_installed:
More information about the Neon-commits
mailing list