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: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=10ac19bedce075d48c8c330cadec0d98393e7270;p=thirdparty%2FPython%2Fcpython.git Issue 2226: Callable checked for the wrong abstract method. --- diff --git a/Lib/_abcoll.py b/Lib/_abcoll.py index 7a01e1dc246f..856a816eeccb 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