summaryrefslogtreecommitdiffstats
path: root/Doc/library/2to3.rst
diff options
context:
space:
mode:
authorDong-hee Na <donghee.na92@gmail.com>2017-11-28 16:26:56 (GMT)
committerÉric Araujo <merwok@users.noreply.github.com>2017-11-28 16:26:56 (GMT)
commita489599793f9b00ddc2c68e2ce3bce9cbb2c09a2 (patch)
treea10f20e7292be409e720293bed9dbed87281c330 /Doc/library/2to3.rst
parent598ceae876ff4a23072e59945597e945583de4ab (diff)
downloadcpython-a489599793f9b00ddc2c68e2ce3bce9cbb2c09a2.zip
cpython-a489599793f9b00ddc2c68e2ce3bce9cbb2c09a2.tar.gz
cpython-a489599793f9b00ddc2c68e2ce3bce9cbb2c09a2.tar.bz2
bpo-32046: Update 2to3 when converts operator.isCallable(obj). (#4417)
Diffstat (limited to 'Doc/library/2to3.rst')
-rw-r--r--Doc/library/2to3.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/2to3.rst b/Doc/library/2to3.rst
index faf06d9..deb5e10 100644
--- a/Doc/library/2to3.rst
+++ b/Doc/library/2to3.rst
@@ -351,7 +351,7 @@ and off individually. They are described here in more detail.
================================== =============================================
From To
================================== =============================================
- ``operator.isCallable(obj)`` ``hasattr(obj, '__call__')``
+ ``operator.isCallable(obj)`` ``callable(obj)``
``operator.sequenceIncludes(obj)`` ``operator.contains(obj)``
``operator.isSequenceType(obj)`` ``isinstance(obj, collections.abc.Sequence)``
``operator.isMappingType(obj)`` ``isinstance(obj, collections.abc.Mapping)``