Remove unnecessary backwards compatibility comments (#5732)

This commit is contained in:
Hanzallah Burney 2022-11-24 15:01:15 +01:00 committed by GitHub
parent 0417e3ede2
commit b6e98ce6b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

View File

@ -44,14 +44,12 @@ def build_component_list(compdict, custom=None, convert=update_classpath):
raise ValueError(f'Invalid value {value} for component {name}, '
'please provide a real number or None instead')
# BEGIN Backward compatibility for old (base, custom) call signature
if isinstance(custom, (list, tuple)):
_check_components(custom)
return type(custom)(convert(c) for c in custom)
if custom is not None:
compdict.update(custom)
# END Backward compatibility
_validate_values(compdict)
compdict = without_none_values(_map_keys(compdict))