Issue 2226: Callable checked for the wrong abstract method.

This commit is contained in:
Raymond Hettinger 2008-03-03 22:19:58 +00:00
parent 972fb077a0
commit 10ac19bedc
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ class Callable:
__metaclass__ = ABCMeta
@abstractmethod
def __contains__(self, x):
def __call__(self, *args, **kwds):
return False
@classmethod