deduplicate spec arg names

This commit is contained in:
jesopo 2020-02-25 09:43:14 +00:00
parent 2a2fe00c4f
commit d1bd3f4920

View file

@ -168,7 +168,7 @@ class SpecArgument(object):
for argument_type in self.types:
if not (context&argument_type.context) == 0:
name = argument_type.name() or argument_type.type
if name:
if name and not name in names:
names.append(name)
if names:
return format % "|".join(names)