summaryrefslogtreecommitdiffstats
path: root/pym/portage/cache/fs_template.py
diff options
context:
space:
mode:
Diffstat (limited to 'pym/portage/cache/fs_template.py')
-rw-r--r--pym/portage/cache/fs_template.py4
1 files changed, 4 insertions, 0 deletions
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"""