Commit c6793d1c authored by Emmanuele Bassi's avatar Emmanuele Bassi

Allow whitespace between marshallers list tokens

Some (older) list files use whitespace, and we need to take that into
account when splitting off the various tokens.
parent cf7ee86b
......@@ -962,7 +962,7 @@ if __name__ == '__main__':
if line == '\n' or line.startswith('#'):
matches = re.match(r'^([A-Z0-9]+):([A-Z0-9,]+)$', line.strip())
matches = re.match(r'^([A-Z0-9]+)\s?:\s?([A-Z0-9,\s]+)$', line.strip())
if not matches or len(matches.groups()) != 2:
print_warning('Invalid entry: "{}"'.format(line.strip()), args.fatal_warnings)
......@@ -972,8 +972,8 @@ if __name__ == '__main__':
location = None
retval =
params =',')
retval =
params = [x.strip() for x in',')]
check_args(retval, params, args.fatal_warnings)
raw_marshaller = generate_marshaller_name(args.prefix, retval, params, False)
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