From 5928fbb44153884b275c2e1ecd67e7499dcf038f Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 22 Sep 2006 19:53:04 +0000 Subject: [PATCH] Convert stat timestamps to long for compatibility with python-2.5, which returns floats for timestamps. svn path=/main/trunk/; revision=4499 --- pym/cache/flat_hash.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.26.2