1
1
.. _forwards-conversion :
2
2
3
+
4
+
3
5
``futurize ``: Py2 to Py2/3
4
6
--------------------------
5
7
@@ -81,6 +83,7 @@ The complete set of fixers applied by ``futurize --stage1`` is:
81
83
82
84
lib2to3.fixes.fix_apply
83
85
lib2to3.fixes.fix_except
86
+ lib2to3.fixes.fix_exec
84
87
lib2to3.fixes.fix_exitfunc
85
88
lib2to3.fixes.fix_funcattrs
86
89
lib2to3.fixes.fix_has_key
@@ -224,9 +227,7 @@ becomes::
224
227
225
228
The complete list of fixers applied in Stage 2 is::
226
229
227
- lib2to3.fixes.fix_basestring
228
230
lib2to3.fixes.fix_dict
229
- lib2to3.fixes.fix_exec
230
231
lib2to3.fixes.fix_getcwdu
231
232
lib2to3.fixes.fix_input
232
233
lib2to3.fixes.fix_itertools
@@ -239,8 +240,9 @@ The complete list of fixers applied in Stage 2 is::
239
240
lib2to3.fixes.fix_raw_input
240
241
lib2to3.fixes.fix_zip
241
242
243
+ libfuturize.fixes.fix_basestring
242
244
libfuturize.fixes.fix_cmp
243
- libfuturize.fixes.fix_division
245
+ libfuturize.fixes.fix_division_safe
244
246
libfuturize.fixes.fix_execfile
245
247
libfuturize.fixes.fix_future_builtins
246
248
libfuturize.fixes.fix_future_standard_library
@@ -269,11 +271,6 @@ Not applied::
269
271
lib2to3.fixes.fix_xrange # Custom one because of a bug with Py3.3's lib2to3
270
272
271
273
272
- Fixes applied with the ``futurize --conservative `` option::
273
-
274
- libfuturize.fixes.fix_division_safe # instead of libfuturize.fixes.fix_division.
275
-
276
-
277
274
278
275
.. Ideally the output of this stage should not be a ``SyntaxError`` on either
279
276
.. Python 3 or Python 2.
0 commit comments