]> granicus.if.org Git - python/commitdiff
document new fix_callable behavior
authorBenjamin Peterson <benjamin@python.org>
Mon, 28 Dec 2009 20:51:17 +0000 (20:51 +0000)
committerBenjamin Peterson <benjamin@python.org>
Mon, 28 Dec 2009 20:51:17 +0000 (20:51 +0000)
Doc/library/2to3.rst

index d9eb00c277f684ba886ed59f3e2702038d5e6d87..20a6245dc656d989e1d38ab1c115cb7630e22e7a 100644 (file)
@@ -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