cpython: 8c92ebcca83f (original) (raw)
Mercurial > cpython
changeset 101532:8c92ebcca83f
Issue #26553: Merge capitalization from 3.5 [#26553]
Martin Panter vadmium+py@gmail.com | |
---|---|
date | Sat, 28 May 2016 02:25:07 +0000 |
parents | c1b40a29dc7a(current diff)4275181c4229(diff) |
children | e67e970de54a |
files | Doc/library/urllib.parse.rst |
diffstat | 6 files changed, 13 insertions(+), 13 deletions(-)[+] [-] Doc/library/concurrent.futures.rst 2 Doc/library/ftplib.rst 2 Doc/library/http.client.rst 2 Doc/library/urllib.parse.rst 2 Doc/library/urllib.request.rst 14 Doc/library/xmlrpc.client.rst 4 |
line wrap: on
line diff
--- a/Doc/library/concurrent.futures.rst +++ b/Doc/library/concurrent.futures.rst @@ -153,7 +153,7 @@ ThreadPoolExecutor Example 'http://www.bbc.co.uk/',[](#l1.4) 'http://some-made-up-domain.com/'][](#l1.5)
def load_url(url, timeout): Retrieve a single page and report the URL and contents with urllib.request.urlopen(url, timeout=timeout) as conn: return conn.read()
--- a/Doc/library/ftplib.rst
+++ b/Doc/library/ftplib.rst
@@ -16,7 +16,7 @@
This module defines the class :class:FTP
and a few related items. The
:class:FTP
class implements the client side of the FTP protocol. You can use
this to write Python programs that perform a variety of automated FTP jobs, such
-as mirroring other ftp servers. It is also used by the module
+as mirroring other FTP servers. It is also used by the module
:mod:urllib.request
to handle URLs that use FTP. For more information on FTP
(File Transfer Protocol), see Internet :rfc:959
.
--- a/Doc/library/http.client.rst
+++ b/Doc/library/http.client.rst
@@ -22,7 +22,7 @@ HTTPS protocols. It is normally not use
.. seealso::
The Requests package <https://requests.readthedocs.org/>
_
--- a/Doc/library/urllib.parse.rst
+++ b/Doc/library/urllib.parse.rst
@@ -592,7 +592,7 @@ task isn't already covered by the URL pa
Names (URNs) and Uniform Resource Locators (URLs).
:rfc:2368
- The mailto URL scheme.
Parsing requirements for mailto url schemes.[](#l4.7)
Parsing requirements for mailto URL schemes.[](#l4.8)
:rfc:1808
- Relative Uniform Resource Locators
This Request For Comments includes the rules for joining an absolute and a
--- a/Doc/library/urllib.request.rst
+++ b/Doc/library/urllib.request.rst
@@ -15,7 +15,7 @@ authentication, redirections, cookies an
.. seealso::
The Requests package <https://requests.readthedocs.org/>
_
The :mod:urllib.request
module defines the following functions:
@@ -71,7 +71,7 @@ The :mod:urllib.request
module defines
* :meth:~urllib.response.addinfourl.getcode
-- return the HTTP status code of the response.
- For HTTP and HTTPS URLs, this function returns a
:class:
http.client.HTTPResponse
object slightly modified. In addition to the three new methods above, the msg attribute contains the same information as the :attr:~http.client.HTTPResponse.reason
@@ -79,7 +79,7 @@ The :mod:urllib.request
module defines the response headers as it is specified in the documentation for :class:~http.client.HTTPResponse
.
- For FTP, file, and data URLs and requests explicitly handled by legacy
:class:
URLopener
and :class:FancyURLopener
classes, this function returns a :class:urllib.response.addinfourl
object.
@@ -453,7 +453,7 @@ request.
.. attribute:: Request.selector
The URI path. If the :class:Request
uses a proxy, then selector
.. attribute:: Request.data
@@ -772,8 +772,8 @@ HTTPRedirectHandler Objects
details of the precise meanings of the various redirection codes.
An :class:HTTPError
exception raised as a security consideration if the
.. method:: HTTPRedirectHandler.redirect_request(req, fp, code, msg, hdrs, newurl) @@ -1126,7 +1126,7 @@ it. :: Note that urlopen returns a bytes object. This is because there is no way for urlopen to automatically determine the encoding of the byte stream -it receives from the http server. In general, a program will decode +it receives from the HTTP server. In general, a program will decode the returned bytes object to string once it determines or guesses the appropriate encoding.
--- a/Doc/library/xmlrpc.client.rst +++ b/Doc/library/xmlrpc.client.rst @@ -29,7 +29,7 @@ between conformable Python objects and X .. versionchanged:: 3.5
- For HTTPS URIs, :mod:
xmlrpc.client
now performs all the necessary certificate and hostname checks by default.
.. class:: ServerProxy(uri, transport=None, encoding=None, verbose=False, [](#l6.11) @@ -67,7 +67,7 @@ between conformable Python objects and X portion will be base64-encoded as an HTTP 'Authorization' header, and sent to the remote server as part of the connection process when invoking an XML-RPC method. You only need to use this if the remote server requires a Basic