62 lines
1.7 KiB
HTML
62 lines
1.7 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of 2TO3-2.7</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>2TO3-2.7</H1>
|
|
Section: User Commands (1)<BR>Updated: January 2012<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
2to3-2.7 - Python2 to Python3 converter
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<B>2to3</B>
|
|
|
|
[<I>options</I>] <I>file|dir </I>...
|
|
<A NAME="lbAD"> </A>
|
|
<H2>OPTIONS</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="1"><B>-h</B>, <B>--help</B><DD>
|
|
show this help message and exit
|
|
<DT id="2"><B>-d</B>, <B>--doctests_only</B><DD>
|
|
Fix up doctests only
|
|
<DT id="3"><B>-f</B> FIX, <B>--fix</B>=<I>FIX</I><DD>
|
|
Each FIX specifies a transformation; default: all
|
|
<DT id="4"><B>-j</B> PROCESSES, <B>--processes</B>=<I>PROCESSES</I><DD>
|
|
Run 2to3 concurrently
|
|
<DT id="5"><B>-x</B> NOFIX, <B>--nofix</B>=<I>NOFIX</I><DD>
|
|
Prevent a transformation from being run
|
|
<DT id="6"><B>-l</B>, <B>--list-fixes</B><DD>
|
|
List available transformations
|
|
<DT id="7"><B>-p</B>, <B>--print-function</B><DD>
|
|
Modify the grammar so that print() is a function
|
|
<DT id="8"><B>-v</B>, <B>--verbose</B><DD>
|
|
More verbose logging
|
|
<DT id="9"><B>--no-diffs</B><DD>
|
|
Don't show diffs of the refactoring
|
|
<DT id="10"><B>-w</B>, <B>--write</B><DD>
|
|
Write back modified files
|
|
<DT id="11"><B>-n</B>, <B>--nobackups</B><DD>
|
|
Don't write backups for modified files
|
|
<P>
|
|
</DL>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="12"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="13"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="14"><A HREF="#lbAD">OPTIONS</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:06 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|