From 768ff9cbb3c61547e757584ab6dd737159fe9b37 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Fri, 22 Jan 2010 19:37:14 +0100 Subject: file_list save fix --- module/file_list.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'module/file_list.py') diff --git a/module/file_list.py b/module/file_list.py index e87fec3dd..4e69bfdef 100644 --- a/module/file_list.py +++ b/module/file_list.py @@ -97,9 +97,9 @@ class File_List(object): "collector": [] } - pdata["packages"] = map(PyLoadPackageData().set, self.data["packages"]) - pdata["queue"] = map(PyLoadPackageData().set, self.data["queue"]) - pdata["collector"] = map(PyLoadFileData().set, self.data["collector"]) + pdata["packages"] = [PyLoadPackageData().set(x) for x in self.data["packages"]] + pdata["queue"] = [PyLoadPackageData().set(x) for x in self.data["queue"]] + pdata["collector"] = [PyLoadFileData().set(x) for x in self.data["collector"]] output = open('module' + sep + 'links.pkl', 'wb') cPickle.dump(pdata, output, -1) @@ -476,7 +476,7 @@ class PyLoadPackageData(): def set(self, pypack): self.data = pypack.data - self.files = map(PyLoadFileData().set, pypack.files) + self.files = [PyLoadFileData().set(x) for x in pypack.files] return self def get(self, pypack, fl): -- cgit v1.2.3