##// END OF EJS Templates
revset: optimized sort method in lazyset class...
Lucas Moscovicz -
r20714:41e10644 default
parent child Browse files
Show More
@@ -2253,8 +2253,8 class lazyset(object):
2253 return l[x]
2253 return l[x]
2254
2254
2255 def sort(self, reverse=False):
2255 def sort(self, reverse=False):
2256 # Basic implementation to be changed in future patches.
2256 if not util.safehasattr(self._subset, 'sort'):
2257 self._subset = baseset(self._subset)
2257 self._subset = baseset(self._subset)
2258 self._subset.sort(reverse=reverse)
2258 self._subset.sort(reverse=reverse)
2259
2259
2260 def reverse(self):
2260 def reverse(self):
General Comments 0
You need to be logged in to leave comments. Login now