From faabedcfd9f00ca9b3d485530b39e17ebea30fde Mon Sep 17 00:00:00 2001 From: Chase Sterling Date: Sun, 28 Oct 2012 22:58:50 -0400 Subject: [PATCH] A fix for identifying unique items. refs #34 --- jsonschema.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jsonschema.py b/jsonschema.py index 0ed2b1d51..6f2b86043 100644 --- a/jsonschema.py +++ b/jsonschema.py @@ -690,8 +690,8 @@ def _uniq(container): except TypeError: try: sort = sorted(container) - sliced = itertools.islice(container, 1, None) - for i, j in zip(container, sliced): + sliced = itertools.islice(sort, 1, None) + for i, j in zip(sort, sliced): if i == j: return False except (NotImplementedError, TypeError):