summaryrefslogtreecommitdiffstats
path: root/pym/portage/cache/sql_template.py
diff options
context:
space:
mode:
Diffstat (limited to 'pym/portage/cache/sql_template.py')
-rw-r--r--pym/portage/cache/sql_template.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pym/portage/cache/sql_template.py b/pym/portage/cache/sql_template.py
index fe873c3ea..e5903cd67 100644
--- a/pym/portage/cache/sql_template.py
+++ b/pym/portage/cache/sql_template.py
@@ -3,6 +3,7 @@
# License: GPL2
# $Id$
+import sys
from portage.cache import template, cache_errors
from portage.cache.template import reconstruct_eclasses
@@ -277,3 +278,5 @@ class SQLDatabase(template.database):
return [ row[0] for row in self.con.fetchall() ]
+ if sys.hexversion >= 0x3000000:
+ items = iteritems