Convert stat timestamps to long for compatibility with python-2.5, which returns...
authorZac Medico <zmedico@gentoo.org>
Fri, 22 Sep 2006 19:53:04 +0000 (19:53 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 22 Sep 2006 19:53:04 +0000 (19:53 -0000)
svn path=/main/trunk/; revision=4499

pym/cache/flat_hash.py

index c46f00593c598fd5047fdb313700fea68ca5721b..df8043c2d90b6d8f08af16842a50cac466183450 100644 (file)
@@ -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)