From 4298f9fe5c993f4981f7d4f337e2dcccda4fc073 Mon Sep 17 00:00:00 2001 From: Mark Hymers Date: Sun, 15 Nov 2009 19:22:57 +0000 Subject: [PATCH] try emptying the lists another way Signed-off-by: Mark Hymers --- daklib/dbconn.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/daklib/dbconn.py b/daklib/dbconn.py index 7047f59b..1418d081 100644 --- a/daklib/dbconn.py +++ b/daklib/dbconn.py @@ -1441,12 +1441,10 @@ class DBChange(object): session = DBConn().session().object_session(self) # Remove changes_pool_files entries - for pf in self.poolfiles: - self.poolfiles.remove(pf) + self.poolfiles = [] - # Remove change - for cf in self.files: - self.files.remove(cf) + # Remove changes_pending_files references + self.files = [] # Clear out of queue self.in_queue = None -- 2.39.5