aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJauhien Piatlicki (jauhien) <piatlicki@gmail.com>2013-09-04 20:09:21 +0200
committerJauhien Piatlicki (jauhien) <piatlicki@gmail.com>2013-09-04 20:09:21 +0200
commit39841f804b3835555bc6d9f29a2d0e9810dba8c4 (patch)
tree8f79c01db23434fed138a2e56fac68e0318d4cc5
parentg_sorcery/package_db: check manifest parallely (diff)
downloadg-sorcery-39841f804b3835555bc6d9f29a2d0e9810dba8c4.tar.gz
g-sorcery-39841f804b3835555bc6d9f29a2d0e9810dba8c4.tar.bz2
g-sorcery-39841f804b3835555bc6d9f29a2d0e9810dba8c4.zip
g_sorcery/package_db; fix for py-3
-rw-r--r--g_sorcery/package_db.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/g_sorcery/package_db.py b/g_sorcery/package_db.py
index e9402da..5fa8d4f 100644
--- a/g_sorcery/package_db.py
+++ b/g_sorcery/package_db.py
@@ -227,7 +227,7 @@ class PackageDB(object):
portion = len(manifest) // proc_num
procs = []
- entries = manifest.items()
+ entries = list(manifest.items())
for i in range(proc_num - 1):
procs.append(multiprocessing.Process(target=self._check_manifest_process, args=(i, entries[i * portion:(i+1) * portion - 1], errors)))