summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/cache/flat_hash.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pym/cache/flat_hash.py b/pym/cache/flat_hash.py
index c46f00593..df8043c2d 100644
--- a/pym/cache/flat_hash.py
+++ b/pym/cache/flat_hash.py
@@ -28,7 +28,8 @@ class database(fs_template.FsBased):
def callit(*args2):
return args[0](*args[1:]+args2)
return callit
- return ProtectedDict(LazyLoad(curry(self._pull, fp, cpv), initial_items=[("_mtime_", os.stat(fp).st_mtime)]))
+ return ProtectedDict(LazyLoad(curry(self._pull, fp, cpv),
+ initial_items=[("_mtime_", long(os.stat(fp).st_mtime))]))
except OSError:
raise KeyError(cpv)
return self._getitem(cpv)