summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-02-25 17:55:45 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-02-25 17:55:45 +0000
commita84bd34d7507bbc7b713f10438738478ac6df085 (patch)
tree39697327c4e9613121ede94e88a5021b3bc3d123
parenta28f2dd07cafbbb136712cc1c75b89f494fa702f (diff)
downloadportage-a84bd34d7507bbc7b713f10438738478ac6df085.tar.gz
portage-a84bd34d7507bbc7b713f10438738478ac6df085.tar.bz2
portage-a84bd34d7507bbc7b713f10438738478ac6df085.zip
Define 'long' for Python 3.
svn path=/main/trunk/; revision=15455
-rw-r--r--pym/portage/util/env_update.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/pym/portage/util/env_update.py b/pym/portage/util/env_update.py
index ebae63446..6f8e91a83 100644
--- a/pym/portage/util/env_update.py
+++ b/pym/portage/util/env_update.py
@@ -7,6 +7,7 @@ __all__ = ['env_update']
import codecs
import errno
import stat
+import sys
import time
import portage
@@ -20,6 +21,9 @@ from portage.util import atomic_ofstream, ensure_dirs, getconfig, \
normalize_path, writemsg
from portage.util.listdir import listdir
+if sys.hexversion >= 0x3000000:
+ long = int
+
def env_update(makelinks=1, target_root=None, prev_mtimes=None, contents=None,
env=None, writemsg_level=None):
"""