summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-01-22 19:37:14 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-01-22 19:37:14 +0100
commit768ff9cbb3c61547e757584ab6dd737159fe9b37 (patch)
tree6b3857af79fa99e31577428f973bba9ab8288f6a
parentsome final tweaks (diff)
downloadpyload-768ff9cbb3c61547e757584ab6dd737159fe9b37.tar.xz
file_list save fix
-rw-r--r--module/file_list.py8
1 files changed, 4 insertions, 4 deletions
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):