Skip to content

Commit d3d52a3

Browse files
committed
README: Highlight python code
1 parent d350f91 commit d3d52a3

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
@@ -25,14 +25,18 @@ Using uvloop
2525
------------
2626

2727
To make asyncio use uvloop, you can install the uvloop event
28-
loop policy::
28+
loop policy:
29+
30+
.. code:: python
2931
3032
import asyncio
3133
import uvloop
3234
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())
3335
3436
Or, alternatively, you can create an instance of the loop
35-
manually, using::
37+
manually, using:
38+
39+
.. code:: python
3640
3741
loop = uvloop.new_event_loop()
3842
asyncio.set_event_loop(loop)

0 commit comments

Comments
 (0)