(self, cmpfunc=None)
| 189 | # Define sort() as appropriate for the Python version. |
| 190 | if sys.version_info[:3] < (2, 4, 0): |
| 191 | def sort(self, cmpfunc=None): |
| 192 | ans = list(self) |
| 193 | ans.sort(cmpfunc) |
| 194 | self[:] = ans |
| 195 | else: |
| 196 | def sort(self, cmpfunc=None, key=None, reverse=False): |
| 197 | ans = list(self) |