Skip to content

Commit 2b066f7

Browse files
committed
docs: fix the ". ::" sentences and merge them into "::" directly
1 parent 48ce606 commit 2b066f7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/library/urllib.request.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1213,7 +1213,7 @@ In addition to the examples below, more examples are given in
12131213
:ref:`urllib-howto`.
12141214

12151215
This example gets the python.org main page and displays the first 300 bytes of
1216-
it. ::
1216+
it::
12171217

12181218
>>> import urllib.request
12191219
>>> with urllib.request.urlopen('http://www.python.org/') as f:
@@ -1232,7 +1232,7 @@ the various ways in which an HTML document could have specified its
12321232
encoding information.
12331233

12341234
As the python.org website uses *utf-8* encoding as specified in its meta tag, we
1235-
will use the same for decoding the bytes object. ::
1235+
will use the same for decoding the bytes object::
12361236

12371237
>>> with urllib.request.urlopen('http://www.python.org/') as f:
12381238
... print(f.read(100).decode('utf-8'))
@@ -1242,7 +1242,7 @@ will use the same for decoding the bytes object. ::
12421242
<!-
12431243

12441244
It is also possible to achieve the same result without using the
1245-
:term:`context manager` approach. ::
1245+
:term:`context manager` approach::
12461246

12471247
>>> import urllib.request
12481248
>>> f = urllib.request.urlopen('http://www.python.org/')

0 commit comments

Comments
 (0)