changeset 3d17366c0423 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=3d17366c0423
description:
config: rename 'file' var
Rename uses of 'file' as a local variable to avoid conflict
with the built-in type of the same name.
diffstat:
configs/common/SysPaths.py | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
diffs (37 lines):
diff -r c35efeacc933 -r 3d17366c0423 configs/common/SysPaths.py
--- a/configs/common/SysPaths.py Thu Feb 05 16:45:06 2015 -0800
+++ b/configs/common/SysPaths.py Thu Feb 05 16:45:12 2015 -0800
@@ -33,24 +33,24 @@
config_path = os.path.dirname(os.path.abspath(__file__))
config_root = os.path.dirname(config_path)
-def searchpath(path, file):
+def searchpath(path, filename):
for p in path:
- f = joinpath(p, file)
+ f = joinpath(p, filename)
if os.path.exists(f):
return f
- raise IOError, "Can't find file '%s' on path." % file
+ raise IOError, "Can't find file '%s' on path." % filename
-def disk(file):
+def disk(filename):
system()
- return searchpath(disk.path, file)
+ return searchpath(disk.path, filename)
-def binary(file):
+def binary(filename):
system()
- return searchpath(binary.path, file)
+ return searchpath(binary.path, filename)
-def script(file):
+def script(filename):
system()
- return searchpath(script.path, file)
+ return searchpath(script.path, filename)
def system():
if not system.path:
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev