Show More
@@ -2889,7 +2889,13 b' class baseset(abstractsmartset):' | |||||
2889 | d = {None: '', False: '-', True: '+'}[self._ascending] |
|
2889 | d = {None: '', False: '-', True: '+'}[self._ascending] | |
2890 | s = _formatsetrepr(self._datarepr) |
|
2890 | s = _formatsetrepr(self._datarepr) | |
2891 | if not s: |
|
2891 | if not s: | |
2892 |
|
|
2892 | l = self._list | |
|
2893 | # if _list has been built from a set, it might have a different | |||
|
2894 | # order from one python implementation to another. | |||
|
2895 | # We fallback to the sorted version for a stable output. | |||
|
2896 | if self._ascending is not None: | |||
|
2897 | l = self._asclist | |||
|
2898 | s = repr(l) | |||
2893 | return '<%s%s %s>' % (type(self).__name__, d, s) |
|
2899 | return '<%s%s %s>' % (type(self).__name__, d, s) | |
2894 |
|
2900 | |||
2895 | class filteredset(abstractsmartset): |
|
2901 | class filteredset(abstractsmartset): |
General Comments 0
You need to be logged in to leave comments.
Login now