From cdd7a8350d5ad23c49c916399dfaace2cd4ab99a Mon Sep 17 00:00:00 2001 From: Arfrever Frehtes Taifersar Arahesis Date: Mon, 21 Sep 2009 17:41:45 +0000 Subject: Define long as int when Python 3 is used. svn path=/main/trunk/; revision=14343 --- pym/portage/cache/fs_template.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pym/portage/cache/fs_template.py') diff --git a/pym/portage/cache/fs_template.py b/pym/portage/cache/fs_template.py index 97be3ab77..7cd8af4d7 100644 --- a/pym/portage/cache/fs_template.py +++ b/pym/portage/cache/fs_template.py @@ -3,6 +3,7 @@ # License: GPL2 # $Id$ +import sys from portage.cache import template from portage import os @@ -14,6 +15,9 @@ lazyimport(globals(), ) del lazyimport +if sys.hexversion >= 0x3000000: + long = int + class FsBased(template.database): """template wrapping fs needed options, and providing _ensure_access as a way to attempt to ensure files have the specified owners/perms""" -- cgit v1.2.3-1-g7c22