(seq)
| 2670 | |
| 2671 | # http://stackoverflow.com/questions/480214/how-do-you-remove-duplicates-from-a-list-in-python-whilst-preserving-order |
| 2672 | def unique_items(seq): |
| 2673 | seen = set() |
| 2674 | seen_add = seen.add |
| 2675 | return [x for x in seq if x not in seen and not seen_add(x)] |
| 2676 | |
| 2677 | |
| 2678 | # Tests if a path is contained in the given list, but with separators normalized. |