From a65aebc7c89aeabc04a757299fccd58ededbf6d5 Mon Sep 17 00:00:00 2001 From: mdipierro Date: Wed, 11 Jul 2012 22:12:14 -0500 Subject: [PATCH] no more import stat in cfs.py, thanks Vladyslav --- VERSION | 2 +- gluon/cfs.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/VERSION b/VERSION index 52c15cba..4fdc0805 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.00.0 (2012-07-11 22:11:17) dev +Version 2.00.0 (2012-07-11 22:12:11) dev diff --git a/gluon/cfs.py b/gluon/cfs.py index c0110234..8dd69cc2 100644 --- a/gluon/cfs.py +++ b/gluon/cfs.py @@ -13,7 +13,6 @@ FOR INTERNAL USE ONLY """ import os -import stat import thread from fileutils import read_file @@ -34,7 +33,7 @@ def getcfs(key, filename, filter=None): This is used on Google App Engine since pyc files cannot be saved. """ - t = os.stat(filename)[stat.ST_MTIME] + t = os.stat(filename).st_mtime cfs_lock.acquire() item = cfs.get(key, None) cfs_lock.release()