summaryrefslogtreecommitdiff
path: root/macro.py
diff options
context:
space:
mode:
Diffstat (limited to 'macro.py')
-rwxr-xr-xmacro.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/macro.py b/macro.py
index ca87057..709876d 100755
--- a/macro.py
+++ b/macro.py
@@ -123,7 +123,7 @@ if __name__ == "__main__":
opts.add_option('', "--output-suffix", dest = "suffix", default = ".m4")
(options, args) = opts.parse_args()
stFile = args.pop(0)
- formatter = StringTemplateGroup(fileName = stFile, lexer = options.lexer)
+ formatter = StringTemplateGroup(file = open(stFile), lexer = options.lexer)
for m4File in args:
(stem,suff) = path.splitext(path.basename(m4File))
assert suff == ".m4"