From a84bd34d7507bbc7b713f10438738478ac6df085 Mon Sep 17 00:00:00 2001 From: Arfrever Frehtes Taifersar Arahesis Date: Thu, 25 Feb 2010 17:55:45 +0000 Subject: [PATCH] Define 'long' for Python 3. svn path=/main/trunk/; revision=15455 --- pym/portage/util/env_update.py | 4 ++++ 1 file changed, 4 insertions(+) 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): """ -- 2.26.2