[Python-checkins] r57825 - sandbox/trunk/2to3/README

georg.brandl python-checkins at python.org
Fri Aug 31 10:14:06 CEST 2007


Author: georg.brandl
Date: Fri Aug 31 10:14:05 2007
New Revision: 57825

Modified:
   sandbox/trunk/2to3/README
Log:
Add a short statement on general usage to README.


Modified: sandbox/trunk/2to3/README
==============================================================================
--- sandbox/trunk/2to3/README	(original)
+++ sandbox/trunk/2to3/README	Fri Aug 31 10:14:05 2007
@@ -6,11 +6,23 @@
 This is a work in progress!
 
 
+General usage
+=============
+
+Run ``refactor.py`` to convert stdin (``-``), files or directories given
+as arguments.  By default, the tool outputs a unified diff-formatted patch
+on standard output and a "what was changed" summary on standard error,
+but the ``-w`` option can be given to write back converted files, creating
+``.bak``-named backup files.
+
+2to3 must be run (at the moment) with Python 2.x!
+
+
 Files
 =====
 
 README         - this file
-refactor.py    - main program; use this to 
+refactor.py    - main program; use this to convert files or directory trees
 test.py        - runs all unittests for 2to3
 patcomp.py     - pattern compiler
 pytree.py      - parse tree nodes (not specific to Python, despite the name!)


More information about the Python-checkins mailing list