diff options
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/repr.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/repr.py b/Lib/repr.py index 7c0016b..8a86682 100644 --- a/Lib/repr.py +++ b/Lib/repr.py @@ -62,9 +62,11 @@ class Repr: return self._repr_iterable(x, level, header, '])', self.maxarray) def repr_set(self, x, level): + x = sorted(x) return self._repr_iterable(x, level, 'set([', '])', self.maxset) def repr_frozenset(self, x, level): + x = sorted(x) return self._repr_iterable(x, level, 'frozenset([', '])', self.maxfrozenset) |