From: Arfrever Frehtes Taifersar Arahesis Date: Thu, 25 Feb 2010 17:55:45 +0000 (-0000) Subject: Define 'long' for Python 3. X-Git-Tag: v2.2_rc64~58 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a84bd34d7507bbc7b713f10438738478ac6df085;p=portage.git Define 'long' for Python 3. svn path=/main/trunk/; revision=15455 --- 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): """