Normalizes a PATH list into a de-duped list of paths.
(path)
| 55 | |
| 56 | |
| 57 | def normalize_path(path): |
| 58 | # type: (Optional[Iterable[str]]) -> Optional[OrderedSet[str]] |
| 59 | """Normalizes a PATH list into a de-duped list of paths.""" |
| 60 | return OrderedSet(PythonInterpreter.canonicalize_path(p) for p in path) if path else None |
| 61 | |
| 62 | |
| 63 | @attr.s(frozen=True) |
no test coverage detected