Skip to content

Commit 3fae227

Browse files
committed
README: set shell syntax highlighting
1 parent dac6ea8 commit 3fae227

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

README.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,14 +196,18 @@ The ``past`` package can now automatically translate some simple Python 2
196196
modules to Python 3 upon import. The goal is to support the "long tail" of
197197
real-world Python 2 modules (e.g. on PyPI) that have not been ported yet. For
198198
example, here is how to use a Python 2-only package called ``plotrique`` on
199-
Python 3. First install it::
199+
Python 3. First install it:
200+
201+
.. code-block:: bash
200202
201203
$ pip3 install plotrique==0.2.5-7 --no-compile # to ignore SyntaxErrors
202204
203205
(or use ``pip`` if this points to your Py3 environment.)
204206

205207
Then pass a whitelist of module name prefixes to the ``autotranslate()`` function.
206-
Example::
208+
Example:
209+
210+
.. code-block:: bash
207211
208212
$ python3
209213

0 commit comments

Comments
 (0)