From 2e3a6c2cdb4af91237718184782389c2ff801c32 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Tue, 12 Jul 2016 11:36:59 +0200 Subject: [PATCH] Python 3.2 workaround: Drop usage of clear() The clear() collection method is not yet available in Python 3.2, but as long as snakefruit still runs Ubuntu 12.04 we need to get along without it. --- britney.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/britney.py b/britney.py index 8c1a31e..af8af0f 100755 --- a/britney.py +++ b/britney.py @@ -2713,7 +2713,7 @@ class Britney(object): self.output_write(" most: (%d) .. %s\n" % (len(selected), " ".join(x.uvname for x in selected[-20:]))) nuninst_last_accepted = nuninst_after rescheduled_packages.extend(maybe_rescheduled_packages) - maybe_rescheduled_packages.clear() + maybe_rescheduled_packages = [] else: broken = sorted(b for b in nuninst_after[failed_arch] if b not in nuninst_last_accepted[failed_arch])