From 10ac19bedce075d48c8c330cadec0d98393e7270 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Mon, 3 Mar 2008 22:19:58 +0000 Subject: [PATCH] Issue 2226: Callable checked for the wrong abstract method. --- Lib/_abcoll.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/_abcoll.py b/Lib/_abcoll.py index 7a01e1dc246..856a816eecc 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