diff options
author | Dong-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) |
commit | a489599793f9b00ddc2c68e2ce3bce9cbb2c09a2 (patch) | |
tree | a10f20e7292be409e720293bed9dbed87281c330 /Doc/library/2to3.rst | |
parent | 598ceae876ff4a23072e59945597e945583de4ab (diff) | |
download | cpython-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.rst | 2 |
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)`` |