diff options
Diffstat (limited to 'scripts/make_errorcodes.py')
| -rwxr-xr-x | scripts/make_errorcodes.py | 11 |
1 files changed, 3 insertions, 8 deletions
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 |
