File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1213,7 +1213,7 @@ In addition to the examples below, more examples are given in
12131213:ref: `urllib-howto `.
12141214
12151215This 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
12321232encoding information.
12331233
12341234As 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
12441244It 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/')
You can’t perform that action at this time.
0 commit comments