]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[doc] Add missing space in urllib.request.rst (GH-19860)
authorSardorbek Imomaliev <sardorbek.imomaliev@gmail.com>
Sat, 23 May 2020 01:05:05 +0000 (08:05 +0700)
committerGitHub <noreply@github.com>
Sat, 23 May 2020 01:05:05 +0000 (18:05 -0700)
This is just a typo fix, should I still provide news file?

Doc/library/urllib.request.rst

index 03712c1f4a6eeabcdaef7dd39707557dd44f8933..288ce14d36f01639fac227242a4992f77a86287c 100644 (file)
@@ -1235,7 +1235,7 @@ Here is an example of doing a ``PUT`` request using :class:`Request`::
 
     import urllib.request
     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:
         pass
     print(f.status)