Removes duplicate elements from items, keeping the first element.
(items)
| 1587 | |
| 1588 | |
| 1589 | def Unify(items): |
| 1590 | """Removes duplicate elements from items, keeping the first element.""" |
| 1591 | seen = {} |
| 1592 | return [seen.setdefault(e, e) for e in items if e not in seen] |
| 1593 | |
| 1594 | |
| 1595 | def RemoveDuplicateDependencies(targets): |
no test coverage detected