no more import stat in cfs.py, thanks Vladyslav
This commit is contained in:
@@ -1 +1 @@
|
||||
Version 2.00.0 (2012-07-11 22:11:17) dev
|
||||
Version 2.00.0 (2012-07-11 22:12:11) dev
|
||||
|
||||
+1
-2
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user