Fix PEP8 complaints
* Remove dead imports * Remove dead code * Fix extra empty lines * Fix formatting * Break too long lines Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
parent
fdda8fe491
commit
4f4fd845d9
@ -3,7 +3,6 @@
|
|||||||
|
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
|
||||||
import argparse
|
import argparse
|
||||||
|
|
||||||
import pungi.ks
|
import pungi.ks
|
||||||
|
@ -15,7 +15,6 @@
|
|||||||
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# TODO: remove all DNF hacks, possibly this whole file
|
# TODO: remove all DNF hacks, possibly this whole file
|
||||||
|
|
||||||
|
|
||||||
|
@ -154,7 +154,10 @@ class Gather(GatherBase):
|
|||||||
|
|
||||||
self.opts = gather_options
|
self.opts = gather_options
|
||||||
self.logger.debug("Gather received gather_options=%s" % gather_options.__dict__)
|
self.logger.debug("Gather received gather_options=%s" % gather_options.__dict__)
|
||||||
self._multilib = pungi.multilib_dnf.Multilib(self.dnf._sack, gather_options.multilib_methods, blacklist=self.opts.multilib_blacklist, whitelist=self.opts.multilib_whitelist)
|
self._multilib = pungi.multilib_dnf.Multilib(self.dnf._sack,
|
||||||
|
gather_options.multilib_methods,
|
||||||
|
blacklist=self.opts.multilib_blacklist,
|
||||||
|
whitelist=self.opts.multilib_whitelist)
|
||||||
|
|
||||||
# already processed packages
|
# already processed packages
|
||||||
self.finished_add_binary_package_deps = {} # {pkg: [deps]}
|
self.finished_add_binary_package_deps = {} # {pkg: [deps]}
|
||||||
@ -229,10 +232,8 @@ class Gather(GatherBase):
|
|||||||
if self.opts.greedy_method == "build" and req:
|
if self.opts.greedy_method == "build" and req:
|
||||||
if self.is_native_package(match):
|
if self.is_native_package(match):
|
||||||
return [i for i in native_pkgs if i.sourcerpm == match.sourcerpm]
|
return [i for i in native_pkgs if i.sourcerpm == match.sourcerpm]
|
||||||
# return list(native_pkgs.filter(sourcerpm=match.sourcerpm, provides=req))
|
|
||||||
else:
|
else:
|
||||||
return [i for i in multilib_pkgs if i.sourcerpm == match.sourcerpm]
|
return [i for i in multilib_pkgs if i.sourcerpm == match.sourcerpm]
|
||||||
# return list(multilib_pkgs.filter(sourcerpm=match.sourcerpm, provides=req))
|
|
||||||
return [match]
|
return [match]
|
||||||
|
|
||||||
def _add_packages(self, packages, pulled_by=None):
|
def _add_packages(self, packages, pulled_by=None):
|
||||||
|
@ -72,7 +72,7 @@ Syntax:
|
|||||||
|
|
||||||
import pykickstart.parser
|
import pykickstart.parser
|
||||||
import pykickstart.sections
|
import pykickstart.sections
|
||||||
from pykickstart.constants import GROUP_REQUIRED, GROUP_DEFAULT, GROUP_ALL
|
from pykickstart.constants import GROUP_REQUIRED, GROUP_DEFAULT
|
||||||
|
|
||||||
|
|
||||||
class FulltreeExcludesSection(pykickstart.sections.Section):
|
class FulltreeExcludesSection(pykickstart.sections.Section):
|
||||||
|
@ -200,7 +200,6 @@ class PungiWrapper(object):
|
|||||||
|
|
||||||
return cmd
|
return cmd
|
||||||
|
|
||||||
|
|
||||||
def get_packages(self, output):
|
def get_packages(self, output):
|
||||||
global PACKAGES_RE
|
global PACKAGES_RE
|
||||||
result = dict(((i, []) for i in PACKAGES_RE))
|
result = dict(((i, []) for i in PACKAGES_RE))
|
||||||
|
Loading…
Reference in New Issue
Block a user