[Synopsis-changes] Synopsis/Synopsis/Synopsis/Core AST.py,1.27,1.28 Executor.py,1.16,1.17

Stefan Seefeld stefan at synopsis.fresco.org
Sat Nov 8 19:49:57 UTC 2003


Update of /cvs/synopsis/Synopsis/Synopsis/Core
In directory frida:/home/stefan/Synopsis/Synopsis/Core

Modified Files:
	AST.py Executor.py 
Log Message:
replace statcache.stat by os.stat

Index: AST.py
===================================================================
RCS file: /cvs/synopsis/Synopsis/Synopsis/Core/AST.py,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -p -d -r1.27 -r1.28
--- AST.py	27 Jan 2003 06:53:36 -0000	1.27
+++ AST.py	8 Nov 2003 19:49:54 -0000	1.28
@@ -20,6 +20,9 @@
 # 02111-1307, USA.
 #
 # $Log$
+# Revision 1.28  2003/11/08 19:49:54  stefan
+# replace statcache.stat by os.stat
+#
 # Revision 1.27  2003/01/27 06:53:36  chalky
 # Added macro support for C++.
 #
@@ -107,7 +110,7 @@ Also defined in module scope are the con
 PRIVATE.
 """
 
-import string, sys, cPickle, types, stat, statcache
+import string, sys, cPickle, types, stat
 import Util, Type
 
 # The version of the file format - this should be increased everytime
@@ -187,7 +190,7 @@ def make_deps(ast):
     for file in ast.files().values():
 	filename = file.full_filename()
 	try:
-	    info = statcache.stat(filename)
+	    info = os.stat(filename)
 	except:
 	    # Ignore any file we can't stat
 	    continue

Index: Executor.py
===================================================================
RCS file: /cvs/synopsis/Synopsis/Synopsis/Core/Executor.py,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -p -d -r1.16 -r1.17
--- Executor.py	16 Jan 2003 17:14:10 -0000	1.16
+++ Executor.py	8 Nov 2003 19:49:54 -0000	1.17
@@ -6,7 +6,7 @@ data needed for the execution of an Acti
 Executor class.
 """
 
-import string, re, os, stat, sys, statcache
+import string, re, os, stat, sys
 
 from Action import ActionVisitor
 from Synopsis.Core import Util
@@ -328,7 +328,7 @@ class CacherExecutor (Executor):
     def _get_timestamp(self, filename):
 	"""Returns the timestamp of the given file, or 0 if not found"""
 	try:
-	    stats = statcache.stat(filename)
+	    stats = os.stat(filename)
 	    return stats[stat.ST_MTIME]
 	except OSError:
 	    # NB: will catch any type of error caused by the stat call, not





More information about the Synopsis-changes mailing list