From ebb62fbc7b7004bc232489fcd7d4b3176939ca33 Mon Sep 17 00:00:00 2001 From: Robert Smallshire Date: Mon, 8 Jun 2015 23:36:42 +0200 Subject: [PATCH] Fixes SortedSet.__new__ failure to return object --- segpy/sorted_set.py | 1 + 1 file changed, 1 insertion(+) diff --git a/segpy/sorted_set.py b/segpy/sorted_set.py index 2b406f0..08e709f 100644 --- a/segpy/sorted_set.py +++ b/segpy/sorted_set.py @@ -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: