unite returns a set now, this simplifies all the set(unite( calls.

This commit is contained in:
Dave Halter committed 2015-11-28 17:52:39 +01:00
1 parent 9259a432b7
commit 55615fb3c1
5 files changed
+15 -15

No files matched your search

+1 -1
View File
@@ -157,4 +157,4 @@ def splitlines(string):
def unite(iterable):
"""Turns a two dimensional array into a one dimensional."""
return list(chain.from_iterable(iterable))
return set(chain.from_iterable(iterable))