##// END OF EJS Templates
revset: prevent infinite recursion on pypy...
Maciej Fijalkowski -
r28718:f103f985 default
parent child Browse files
Show More
@@ -2956,7 +2956,10 b' class filteredset(abstractsmartset):'
2956
2956
2957 def __len__(self):
2957 def __len__(self):
2958 # Basic implementation to be changed in future patches.
2958 # Basic implementation to be changed in future patches.
2959 l = baseset([r for r in self])
2959 # until this gets improved, we use generator expression
2960 # here, since list compr is free to call __len__ again
2961 # causing infinite recursion
2962 l = baseset(r for r in self)
2960 return len(l)
2963 return len(l)
2961
2964
2962 def sort(self, reverse=False):
2965 def sort(self, reverse=False):
General Comments 0
You need to be logged in to leave comments. Login now