Define 'long' for Python 3. (trunk r15455)
authorZac Medico <zmedico@gentoo.org>
Tue, 2 Mar 2010 21:00:03 +0000 (21:00 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 2 Mar 2010 21:00:03 +0000 (21:00 -0000)
svn path=/main/branches/2.1.7/; revision=15664

pym/portage/util/env_update.py

index ebae63446650d09afd5881733d68fdfbd8308099..6f8e91a8370257ed511d3ab4bd55d5083eea3400 100644 (file)
@@ -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):
        """