From 0d19eaf1eb1d4c110d4ec6826a5b30343b63e7e6 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Mon, 28 Dec 2009 20:51:17 +0000 Subject: [PATCH] document new fix_callable behavior --- Doc/library/2to3.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Doc/library/2to3.rst b/Doc/library/2to3.rst index d9eb00c277..20a6245dc6 100644 --- a/Doc/library/2to3.rst +++ b/Doc/library/2to3.rst @@ -122,7 +122,8 @@ and off individually. They are described here in more detail. .. 2to3fixer:: callable - Converts ``callable(x)`` to ``hasattr(x, "__call_")``. + Converts ``callable(x)`` to ``isinstance(x, collections.Callable)``, adding + an import to :mod:`collections` if needed. .. 2to3fixer:: dict -- 2.50.1