2to3 tool python
Place output files in this directory instead of overwriting input files. Requires the -n flag, as backup files are unnecessary when the input files are not modified.
Write output files even is no changes were required. Useful with -o so that a complete source tree is translated and copied. Implies -w. In the above file, there are several incompatible lines. This code can be converted to Python 3.
Learn more. Save the file as example. The directories are recursively traversed for Python sources. Specify transformations to be applied; default: all. List available transformations with --list-fixes.
Place output files in this directory instead of overwriting input files. Requires the -n flag, as backup files are unnecessary when the input files are not modified. Useful with -o so that a complete source tree is translated and copied. Implies -w. Requires -n if non-empty. Python 2. Python 3. Previous Next. This website is not affiliated with Stack Overflow.
Specify transformations to be applied; default: all.
0コメント