1. Armin Rigo
  2. cpython-withatomic

Commits

Benjamin Peterson  committed da07348

note the 2to3 -d could be useful for other refactoring

  • Participants
  • Parent commits 231f3a2
  • Branches legacy-trunk

Comments (0)

Files changed (1)

File Doc/library/2to3.rst

View file
 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.