summaryrefslogtreecommitdiffstats
path: root/pym/portage/eclass_cache.py
diff options
context:
space:
mode:
Diffstat (limited to 'pym/portage/eclass_cache.py')
-rw-r--r--pym/portage/eclass_cache.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pym/portage/eclass_cache.py b/pym/portage/eclass_cache.py
index 26019400b..39e29d540 100644
--- a/pym/portage/eclass_cache.py
+++ b/pym/portage/eclass_cache.py
@@ -5,6 +5,7 @@
__all__ = ["cache"]
+import stat
import sys
import warnings
from portage.util import normalize_path
@@ -95,7 +96,7 @@ class cache(object):
if not y.endswith(".eclass"):
continue
try:
- mtime = long(os.stat(os.path.join(x, y)).st_mtime)
+ mtime = os.stat(os.path.join(x, y))[stat.ST_MTIME]
except OSError:
continue
ys=y[:-eclass_len]