summaryrefslogtreecommitdiffstats
path: root/pym/portage/cache/flat_list.py
diff options
context:
space:
mode:
Diffstat (limited to 'pym/portage/cache/flat_list.py')
-rw-r--r--pym/portage/cache/flat_list.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/pym/portage/cache/flat_list.py b/pym/portage/cache/flat_list.py
index cfa3340cd..c7d618c26 100644
--- a/pym/portage/cache/flat_list.py
+++ b/pym/portage/cache/flat_list.py
@@ -6,6 +6,10 @@ from portage import _unicode_encode
import codecs
import errno
import stat
+import sys
+
+if sys.hexversion >= 0x3000000:
+ long = int
# store the current key order *here*.
class database(fs_template.FsBased):