Skip to content
Snippets Groups Projects
Commit b67e24f0 authored by Pierre-Yves David's avatar Pierre-Yves David
Browse files

baseset: remove `set()` definition

All my friends are dead.
parent c8afe69c
No related branches found
No related tags found
No related merge requests found
......@@ -2330,17 +2330,6 @@
def fastdesc(self):
return reversed(self._asclist)
def set(self):
"""Returns a set or a smartset containing all the elements.
The returned structure should be the fastest option for membership
testing.
This is part of the mandatory API for smartset."""
if not self._set:
self._set = set(self)
return self._set
@util.propertycache
def __contains__(self):
return self._set.__contains__
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment