]> granicus.if.org Git - python/commitdiff
note the 2to3 -d could be useful for other refactoring
authorBenjamin Peterson <benjamin@python.org>
Sun, 28 Sep 2008 01:53:29 +0000 (01:53 +0000)
committerBenjamin Peterson <benjamin@python.org>
Sun, 28 Sep 2008 01:53:29 +0000 (01:53 +0000)
Doc/library/2to3.rst

index e603b456e75e90572aa5e28721aacb31529ccb92..2e9547c6d46f8f9ce83ae257febb1ece1c3851a6 100644 (file)
@@ -74,7 +74,9 @@ warning beneath the diff for a file.  You should address the warning in order to
 have compliant 3.x code.
 
 2to3 can also refactor doctests.  To enable this mode, use the :option:`-d`
-flag.  Note that *only* doctests will be refactored.
+flag.  Note that *only* doctests will be refactored.  This also doesn't require
+the module to be valid Python.  For example, doctest like examples in a reST
+document could also be refactored with this option.
 
 The :option:`-v` option enables the output of more information on the
 translation process.