summaryrefslogtreecommitdiff
path: root/src/python/m5/params.py
diff options
context:
space:
mode:
authorMiles Kaufmann <milesck@eecs.umich.edu>2007-08-30 15:16:59 -0400
committerMiles Kaufmann <milesck@eecs.umich.edu>2007-08-30 15:16:59 -0400
commiteddf6f163741d116235caeba9cec3e604907dfcf (patch)
treedda7c053781336bb3e4dd819ed246e70e08c29bb /src/python/m5/params.py
parente4eea9ee04df0183c6d8e23efb3d9c23b47a79de (diff)
downloadgem5-eddf6f163741d116235caeba9cec3e604907dfcf.tar.xz
python: Write configuration file without reassigning sys.stdout.
Using print >>ini_file syntax instead of reassigning sys.stdout allows the python debugger to be used. --HG-- extra : convert_revision : 63fc268f2e80f338ad1a7abe54b9e979e2239609
Diffstat (limited to 'src/python/m5/params.py')
-rw-r--r--src/python/m5/params.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/python/m5/params.py b/src/python/m5/params.py
index 52a927ba3..27bb24bd7 100644
--- a/src/python/m5/params.py
+++ b/src/python/m5/params.py
@@ -176,9 +176,9 @@ class VectorParamValue(list):
return [v.unproxy(base) for v in self]
class SimObjVector(VectorParamValue):
- def print_ini(self):
+ def print_ini(self, ini_file):
for v in self:
- v.print_ini()
+ v.print_ini(ini_file)
class VectorParamDesc(ParamDesc):
# Convert assigned value to appropriate type. If the RHS is not a