Fixes SortedSet.__new__ failure to return object

This commit is contained in:
Robert Smallshire
2015-06-08 23:36:42 +02:00
parent ee9f2cbb52
commit ebb62fbc7b
+1
View File
@@ -11,6 +11,7 @@ class SortedFrozenSet(Sequence, Set):
return items
obj = object.__new__(cls)
obj._items = sorted(set(items)) if items is not None else []
return obj
def __contains__(self, item):
try: