Skip to content

Commit b6f8457

Browse files
committed
fixed unicode literals flag in futurize doc
1 parent 521477b commit b6f8457

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/futurize.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Implicit relative imports fixed, e.g.::
6868
.. (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.)
6969
7070
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.
7272

7373
The goal for this stage is to create most of the ``diff`` for the entire
7474
porting process, but without introducing any bugs. It should be uncontroversial
@@ -297,9 +297,9 @@ example::
297297
Any unadorned string literals will then represent native platform strings
298298
(byte-strings on Py2, unicode strings on Py3).
299299

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
303303

304304
After running this, all string literals that were not explicitly marked up as
305305
``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
311311
Post-conversion
312312
~~~~~~~~~~~~~~~
313313

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.
315315

316316
The next step would be manually tweaking the code to re-enable Python 2
317317
compatibility with the help of the ``future`` package. For example, you can add

0 commit comments

Comments
 (0)