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
This commit is contained in:
Miles Kaufmann
2007-08-30 15:16:59 -04:00
parent e4eea9ee04
commit eddf6f1637
3 changed files with 15 additions and 15 deletions

View File

@@ -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