summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2008-03-03 22:19:58 (GMT)
committerRaymond Hettinger <python@rcn.com>2008-03-03 22:19:58 (GMT)
commit10ac19bedce075d48c8c330cadec0d98393e7270 (patch)
treebcfc7dbf9b2d11395bfbf76e33b65c5ec3865836 /Lib
parent972fb077a022722113e155ebf564f98ebdbe2b65 (diff)
downloadcpython-10ac19bedce075d48c8c330cadec0d98393e7270.zip
cpython-10ac19bedce075d48c8c330cadec0d98393e7270.tar.gz
cpython-10ac19bedce075d48c8c330cadec0d98393e7270.tar.bz2
Issue 2226: Callable checked for the wrong abstract method.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/_abcoll.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/_abcoll.py b/Lib/_abcoll.py
index 7a01e1d..856a816 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