From 55961e7d79081d7a57bcf54bdd1f518c00039124 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Tue, 24 Mar 2015 21:57:14 +0100 Subject: Code generator: Implement errorcopy and eventcopy Signed-off-by: Uli Schlachter --- src/extensions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/extensions.py b/src/extensions.py index f50637b..c7a1afe 100755 --- a/src/extensions.py +++ b/src/extensions.py @@ -20,10 +20,10 @@ class Module(object): for elt in list(root): tag = elt.tag - if tag == "error" or tag == "event": + if tag == "error" or tag == "errorcopy" or tag == "event" or tag == "eventcopy": name = elt.get("name") number = int(elt.get("number")) - if tag == "error": + if tag == "error" or tag == "errorcopy": self.errors[number] = name else: self.events[number] = name -- cgit v1.2.3