mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
[doc] Add missing space in urllib.request.rst (GH-19860)
This is just a typo fix, should I still provide news file?
This commit is contained in:
parent
da51ba442c
commit
8022eb4e97
1 changed files with 1 additions and 1 deletions
|
@ -1235,7 +1235,7 @@ Here is an example of doing a ``PUT`` request using :class:`Request`::
|
||||||
|
|
||||||
import urllib.request
|
import urllib.request
|
||||||
DATA = b'some data'
|
DATA = b'some data'
|
||||||
req = urllib.request.Request(url='http://localhost:8080', data=DATA,method='PUT')
|
req = urllib.request.Request(url='http://localhost:8080', data=DATA, method='PUT')
|
||||||
with urllib.request.urlopen(req) as f:
|
with urllib.request.urlopen(req) as f:
|
||||||
pass
|
pass
|
||||||
print(f.status)
|
print(f.status)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue