From 6705e4051dc97256fb1d2f59773c84d43dcb0589 Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Thu, 28 Aug 2014 02:05:54 +0100 Subject: Dropped creation of errcodes with missing spec field On further inspection these names are just aliases for values already defined: we don't need the duplication. --- scripts/make_errorcodes.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'scripts/make_errorcodes.py') diff --git a/scripts/make_errorcodes.py b/scripts/make_errorcodes.py index d6e2533..122e0d5 100755 --- a/scripts/make_errorcodes.py +++ b/scripts/make_errorcodes.py @@ -72,15 +72,10 @@ def parse_errors_txt(url): m = re.match(r"(.....)\s+(?:E|W|S)\s+ERRCODE_(\S+)(?:\s+(\S+))?$", line) if m: errcode, macro, spec = m.groups() - # error 22008 has 2 macros and 1 def: give priority to the def - # as it's the one we used to parse from sgml + # skip errcodes without specs as they are not publically visible if not spec: - if errcode in errors[class_]: - continue - errlabel = macro.upper() - else: - errlabel = spec.upper() - + continue + errlabel = spec.upper() errors[class_][errcode] = errlabel continue -- cgit v1.2.1