utils: Assert desired contract for normalize_paths()

This is a separate commit so it can be dropped during a rebase or revert
independently.
This commit is contained in:
Eric N. Vander Weele 2019-07-28 10:39:27 -04:00
parent 9283f2f03f
commit a0cd55fd6d

View file

@ -168,6 +168,7 @@ def normalize_paths(paths, parent=os.curdir):
:rtype:
[str]
"""
assert isinstance(paths, list), paths # nosec (for bandit)
return [
normalize_path(p, parent) for p in parse_comma_separated_list(paths)
]