Commit 1bbe01eb authored by Guido van Rossum's avatar Guido van Rossum

Oops, raise METALError for unknown METAL attributes

parent 8d740e72
...@@ -302,7 +302,7 @@ class TALGenerator: ...@@ -302,7 +302,7 @@ class TALGenerator:
raise TALError("bad TAL attribute: " + `key`) raise TALError("bad TAL attribute: " + `key`)
for key in metaldict.keys(): for key in metaldict.keys():
if key not in KNOWN_METAL_ATTRIBUTES: if key not in KNOWN_METAL_ATTRIBUTES:
raise TALError("bad METAL attribute: " + `key`) raise METALError("bad METAL attribute: " + `key`)
todo = {} todo = {}
defineMacro = metaldict.get("define-macro") defineMacro = metaldict.get("define-macro")
useMacro = metaldict.get("use-macro") useMacro = metaldict.get("use-macro")
......
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