From: Raymond Hettinger Date: Mon, 3 Mar 2008 22:19:58 +0000 (+0000) Subject: Issue 2226: Callable checked for the wrong abstract method. X-Git-Tag: v2.6a2~408 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=10ac19bedce075d48c8c330cadec0d98393e7270;p=python Issue 2226: Callable checked for the wrong abstract method. --- diff --git a/Lib/_abcoll.py b/Lib/_abcoll.py index 7a01e1dc24..856a816eec 100644 --- a/Lib/_abcoll.py +++ b/Lib/_abcoll.py @@ -107,7 +107,7 @@ class Callable: __metaclass__ = ABCMeta @abstractmethod - def __contains__(self, x): + def __call__(self, *args, **kwds): return False @classmethod