summaryrefslogtreecommitdiffstats
path: root/pym/portage/cache/flat_hash.py
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-09-21 17:41:45 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-09-21 17:41:45 +0000
commitcdd7a8350d5ad23c49c916399dfaace2cd4ab99a (patch)
tree4881d84340d833b0fdbc8f8b77d61f4c001f15b6 /pym/portage/cache/flat_hash.py
parent1e41a53912fa53b74577752cbbad7cbdd4e2afef (diff)
downloadportage-cdd7a8350d5ad23c49c916399dfaace2cd4ab99a.tar.gz
portage-cdd7a8350d5ad23c49c916399dfaace2cd4ab99a.tar.bz2
portage-cdd7a8350d5ad23c49c916399dfaace2cd4ab99a.zip
Define long as int when Python 3 is used.
svn path=/main/trunk/; revision=14343
Diffstat (limited to 'pym/portage/cache/flat_hash.py')
-rw-r--r--pym/portage/cache/flat_hash.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/pym/portage/cache/flat_hash.py b/pym/portage/cache/flat_hash.py
index 3f46df8b9..918c935f5 100644
--- a/pym/portage/cache/flat_hash.py
+++ b/pym/portage/cache/flat_hash.py
@@ -8,10 +8,14 @@ from portage.cache import fs_template
from portage.cache import cache_errors
import errno
import stat
+import sys
from portage import os
from portage import _encodings
from portage import _unicode_encode
+if sys.hexversion >= 0x3000000:
+ long = int
+
class database(fs_template.FsBased):
autocommits = True