From: Zac Medico Date: Tue, 2 Mar 2010 21:00:03 +0000 (-0000) Subject: Define 'long' for Python 3. (trunk r15455) X-Git-Tag: v2.1.8~59 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7c17f78d59950df9b3673f03db6efa1c9ceaf13d;p=portage.git Define 'long' for Python 3. (trunk r15455) svn path=/main/branches/2.1.7/; revision=15664 --- 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): """