commit | 10ac19bedce075d48c8c330cadec0d98393e7270 | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Mon Mar 03 22:19:58 2008 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Mon Mar 03 22:19:58 2008 +0000 |
tree | bcfc7dbf9b2d11395bfbf76e33b65c5ec3865836 | |
parent | 972fb077a022722113e155ebf564f98ebdbe2b65 [diff] |
Issue 2226: Callable checked for the wrong abstract method.
diff --git a/Lib/_abcoll.py b/Lib/_abcoll.py index 7a01e1d..856a816 100644 --- a/Lib/_abcoll.py +++ b/Lib/_abcoll.py
@@ -107,7 +107,7 @@ __metaclass__ = ABCMeta @abstractmethod - def __contains__(self, x): + def __call__(self, *args, **kwds): return False @classmethod