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
225228The 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