Commit 1fad9a44 authored by Andreas Zwinkau's avatar Andreas Zwinkau
Browse files

Backport to python 2.5

parent 6e332780
......@@ -391,8 +391,9 @@ def generate_spec_config(options):
if __name__ == "__main__":
(options, args) = parser.parse_args()
conf = generate_spec_config(options)
with open("config/generated.cfg", 'w') as fh:
fh.write(conf)
fh = open("config/generated.cfg", 'w'):
fh.write(conf)
fh.close()
if options.config_only:
exit(0)
progs = " ".join(filter_progs(options))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment