diff --git a/Lib/UserList.py b/Lib/UserList.py index 114606098ce..aab511915cc 100644 --- a/Lib/UserList.py +++ b/Lib/UserList.py @@ -17,6 +17,7 @@ def __cmp__(self, other): return cmp(self.data, other.data) else: return cmp(self.data, other) + def __contains__(self, item): return item in self.data def __len__(self): return len(self.data) def __getitem__(self, i): return self.data[i] def __setitem__(self, i, item): self.data[i] = item