diff --git a/britney.py b/britney.py index 4a9caa1..d530f44 100755 --- a/britney.py +++ b/britney.py @@ -2514,7 +2514,6 @@ class Britney(object): # a package is obsolete if none of the binary packages in testing # are built by it self.__log("> Removing obsolete source packages from testing", type="I") - removals = [] # local copies for performance sources = self.sources['testing'] binaries = self.binaries['testing'] diff --git a/britney_util.py b/britney_util.py index 3766170..fbe39f5 100644 --- a/britney_util.py +++ b/britney_util.py @@ -115,7 +115,7 @@ def iter_except(func, exception, first=None): def undo_changes(lundo, inst_tester, sources, binaries, - BINARIES=BINARIES, PROVIDES=PROVIDES): + BINARIES=BINARIES): """Undoes one or more changes to testing * lundo is a list of (undo, item)-tuples diff --git a/completer.py b/completer.py index e5b0ca0..27437c1 100644 --- a/completer.py +++ b/completer.py @@ -39,7 +39,6 @@ class Completer(object): complete = [] tpu = [] for e in britney.excuses: - ver = None pkg = e.name suite = 'unstable' if pkg[0] == '-': diff --git a/hints.py b/hints.py index ab47675..6643257 100644 --- a/hints.py +++ b/hints.py @@ -24,7 +24,7 @@ class HintCollection(object): return self.search(type) def search(self, type=None, onlyactive=True, package=None, \ - version=None, days=None, removal=None): + version=None, removal=None): return [ hint for hint in self._hints if (type is None or type == hint.type) and diff --git a/installability/builder.py b/installability/builder.py index becc6b3..2998d16 100644 --- a/installability/builder.py +++ b/installability/builder.py @@ -29,7 +29,7 @@ class _RelationBuilder(object): self._new_breaks = set(binary_data[1]) - def add_dependency_clause(self, or_clause, frozenset=frozenset): + def add_dependency_clause(self, or_clause): """Add a dependency clause The clause must be a sequence of (name, version, architecture) @@ -48,7 +48,6 @@ class _RelationBuilder(object): clause = self._itbuilder._intern_set(or_clause) binary = self._binary itbuilder = self._itbuilder - package_table = itbuilder._package_table okay = False for dep_tuple in clause: okay = True