# Pastebin WsNmykoB === modified file 'data/apt_check.py' --- data/apt_check.py 2016-09-21 19:55:05 +0000 +++ data/apt_check.py 2018-11-13 17:04:11 +0000 @@ -56,8 +56,8 @@ def write_package_names(outstream, cache, depcache): " write out package names that change to outstream " - pkgs = [pkg for pkg in cache.packages if depcache.marked_install(pkg) or - depcache.marked_upgrade(pkg)] + pkgs = [pkg for pkg in cache.packages if depcache.marked_install(pkg) + or depcache.marked_upgrade(pkg)] outstream.write("\n".join([p.name for p in pkgs])) @@ -123,8 +123,8 @@ with apt.Cache() as aptcache: for pkg in cache.packages: # skip packages that are not marked upgraded/installed - if not (depcache.marked_install(pkg) or - depcache.marked_upgrade(pkg)): + if not (depcache.marked_install(pkg) + or depcache.marked_upgrade(pkg)): continue # check if this is really a upgrade or a false positive # (workaround for ubuntu #7907) @@ -155,10 +155,9 @@ # now check for security updates that are masked by a # candidate version from another repo (-proposed or -updates) for ver in pkg.version_list: - if (inst_ver and apt_pkg.version_compare(ver.ver_str, - inst_ver.ver_str) <= - 0): - # print("skipping '%s' " % ver.VerStr) + if (inst_ver + and apt_pkg.version_compare(ver.ver_str, + inst_ver.ver_str) <= 0): continue if isSecurityUpgrade(ver): security_updates += 1 === modified file 'data/package-data-downloader' --- data/package-data-downloader 2018-05-29 07:38:20 +0000 +++ data/package-data-downloader 2018-11-13 17:01:49 +0000 @@ -160,8 +160,8 @@ res = [] for relfile in os.listdir(DATADIR): # ignore files ending in .dpkg-* - if (os.path.splitext(relfile)[1] and - os.path.splitext(relfile)[1].startswith(".dpkg")): + if (os.path.splitext(relfile)[1] + and os.path.splitext(relfile)[1].startswith(".dpkg")): continue res.append(relfile) return res === modified file 'tests/test_pep8.py' --- tests/test_pep8.py 2016-09-21 19:55:05 +0000 +++ tests/test_pep8.py 2018-11-13 16:58:19 +0000 @@ -6,7 +6,7 @@ import unittest # pep8 is overdoing it a bit IMO -IGNORE_PEP8 = "E265" +IGNORE_PEP8 = "E265, W503" IGNORE_FILES = ( )