This fixes a DeepSource alert:
Re-definition found for builtin function
Defining a local variable or function with the same name as a built-in
object makes the built-in object unusable within the current scope and
makes the code prone to bugs.
Signed-off-by: Dimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
ret = dict()
for name in names.chosen:
for attr in name:
- type = attr['type'].dotted # dotted-quad value (e.g. '2.5.4.10' = organization)
- value = attr['value'].native # literal string value (e.g. 'Bigcorp Inc.')
- ret.setdefault(type, []).append(value)
+ type_dotted = attr['type'].dotted # dotted-quad value (e.g. '2.5.4.10' = organization)
+ value_native = attr['value'].native # literal string value (e.g. 'Bigcorp Inc.')
+ ret.setdefault(type_dotted, []).append(value_native)
return ret
def __init__(self, cert_file):