@@ -68,7 +68,7 @@ Implicit relative imports fixed, e.g.::
68
68
.. (This last step can be prevented using --no-bytes-literals if you already have b'...' markup in your code, whose meaning would otherwise be lost.)
69
69
70
70
Stage 1 does not add any imports from the ``future `` package. The output of
71
- stage 1 will probably not (yet) run on Python 3.
71
+ stage 1 will probably not (yet) run on Python 3.
72
72
73
73
The goal for this stage is to create most of the ``diff `` for the entire
74
74
porting process, but without introducing any bugs. It should be uncontroversial
@@ -297,9 +297,9 @@ example::
297
297
Any unadorned string literals will then represent native platform strings
298
298
(byte-strings on Py2, unicode strings on Py3).
299
299
300
- An alternative is to pass the ``--unicode_literals `` flag::
301
-
302
- $ futurize --unicode_literals mypython2script.py
300
+ An alternative is to pass the ``--unicode-literals `` flag::
301
+
302
+ $ futurize --unicode-literals mypython2script.py
303
303
304
304
After running this, all string literals that were not explicitly marked up as
305
305
``b'' `` will mean text (Python 3 ``str `` or Python 2 ``unicode ``).
@@ -311,7 +311,7 @@ After running this, all string literals that were not explicitly marked up as
311
311
Post-conversion
312
312
~~~~~~~~~~~~~~~
313
313
314
- After running ``futurize ``, we recommend first running your tests on Python 3 and making further code changes until they pass on Python 3.
314
+ After running ``futurize ``, we recommend first running your tests on Python 3 and making further code changes until they pass on Python 3.
315
315
316
316
The next step would be manually tweaking the code to re-enable Python 2
317
317
compatibility with the help of the ``future `` package. For example, you can add
0 commit comments