]> granicus.if.org Git - python/commitdiff
Issue 2226: Callable checked for the wrong abstract method.
authorRaymond Hettinger <python@rcn.com>
Mon, 3 Mar 2008 22:19:58 +0000 (22:19 +0000)
committerRaymond Hettinger <python@rcn.com>
Mon, 3 Mar 2008 22:19:58 +0000 (22:19 +0000)
Lib/_abcoll.py

index 7a01e1dc246f66ae53e6ce78a28198f1084aa8d5..856a816eeccb9ca4d7d166dc74adebc757db915d 100644 (file)
@@ -107,7 +107,7 @@ class Callable:
     __metaclass__ = ABCMeta
 
     @abstractmethod
-    def __contains__(self, x):
+    def __call__(self, *args, **kwds):
         return False
 
     @classmethod