Skip to content

Commit 62cc001

Browse files
committed
Update doc/futurize to reflect what gets run
Compare rc/libfuturize/fixes/__init__.py and doc/futurize.rst to make sure they align.
1 parent a8114e4 commit 62cc001

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

docs/futurize.rst

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
.. _forwards-conversion:
22

3+
4+
35
``futurize``: Py2 to Py2/3
46
--------------------------
57

@@ -81,6 +83,7 @@ The complete set of fixers applied by ``futurize --stage1`` is:
8183
8284
lib2to3.fixes.fix_apply
8385
lib2to3.fixes.fix_except
86+
lib2to3.fixes.fix_exec
8487
lib2to3.fixes.fix_exitfunc
8588
lib2to3.fixes.fix_funcattrs
8689
lib2to3.fixes.fix_has_key
@@ -224,9 +227,7 @@ becomes::
224227

225228
The complete list of fixers applied in Stage 2 is::
226229

227-
lib2to3.fixes.fix_basestring
228230
lib2to3.fixes.fix_dict
229-
lib2to3.fixes.fix_exec
230231
lib2to3.fixes.fix_getcwdu
231232
lib2to3.fixes.fix_input
232233
lib2to3.fixes.fix_itertools
@@ -239,8 +240,9 @@ The complete list of fixers applied in Stage 2 is::
239240
lib2to3.fixes.fix_raw_input
240241
lib2to3.fixes.fix_zip
241242

243+
libfuturize.fixes.fix_basestring
242244
libfuturize.fixes.fix_cmp
243-
libfuturize.fixes.fix_division
245+
libfuturize.fixes.fix_division_safe
244246
libfuturize.fixes.fix_execfile
245247
libfuturize.fixes.fix_future_builtins
246248
libfuturize.fixes.fix_future_standard_library
@@ -269,11 +271,6 @@ Not applied::
269271
lib2to3.fixes.fix_xrange # Custom one because of a bug with Py3.3's lib2to3
270272

271273

272-
Fixes applied with the ``futurize --conservative`` option::
273-
274-
libfuturize.fixes.fix_division_safe # instead of libfuturize.fixes.fix_division.
275-
276-
277274

278275
.. Ideally the output of this stage should not be a ``SyntaxError`` on either
279276
.. Python 3 or Python 2.

0 commit comments

Comments
 (0)