mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Issue #25899: Converted non-ASCII characters in docstrings and manpage
to ASCII replacements. Removed UTF-8 BOM from Misc/NEWS. Original patch by Chris Angelico.
This commit is contained in:
commit
3fd4a735d8
6 changed files with 10 additions and 10 deletions
|
@ -735,9 +735,9 @@ class HTTPResponse(io.BufferedIOBase):
|
||||||
guessed.
|
guessed.
|
||||||
|
|
||||||
When the method is local-file, returned headers will include
|
When the method is local-file, returned headers will include
|
||||||
a Date representing the file’s last-modified time, a
|
a Date representing the file's last-modified time, a
|
||||||
Content-Length giving file size, and a Content-Type
|
Content-Length giving file size, and a Content-Type
|
||||||
containing a guess at the file’s type. See also the
|
containing a guess at the file's type. See also the
|
||||||
description of the mimetools module.
|
description of the mimetools module.
|
||||||
|
|
||||||
'''
|
'''
|
||||||
|
|
|
@ -397,7 +397,7 @@ class Connection(_ConnectionBase):
|
||||||
self._send(header)
|
self._send(header)
|
||||||
self._send(buf)
|
self._send(buf)
|
||||||
else:
|
else:
|
||||||
# Issue # 20540: concatenate before sending, to avoid delays due
|
# Issue #20540: concatenate before sending, to avoid delays due
|
||||||
# to Nagle's algorithm on a TCP socket.
|
# to Nagle's algorithm on a TCP socket.
|
||||||
# Also note we want to avoid sending a 0-length buffer separately,
|
# Also note we want to avoid sending a 0-length buffer separately,
|
||||||
# to avoid "broken pipe" errors if the other end closed the pipe.
|
# to avoid "broken pipe" errors if the other end closed the pipe.
|
||||||
|
|
|
@ -179,14 +179,14 @@ def urlopen(url, data=None, timeout=socket._GLOBAL_DEFAULT_TIMEOUT,
|
||||||
urllib.response.addinfourl object which can work as context manager and has
|
urllib.response.addinfourl object which can work as context manager and has
|
||||||
methods such as:
|
methods such as:
|
||||||
|
|
||||||
* geturl() — return the URL of the resource retrieved, commonly used to
|
* geturl() - return the URL of the resource retrieved, commonly used to
|
||||||
determine if a redirect was followed
|
determine if a redirect was followed
|
||||||
|
|
||||||
* info() — return the meta-information of the page, such as headers, in the
|
* info() - return the meta-information of the page, such as headers, in the
|
||||||
form of an email.message_from_string() instance (see Quick Reference to
|
form of an email.message_from_string() instance (see Quick Reference to
|
||||||
HTTP Headers)
|
HTTP Headers)
|
||||||
|
|
||||||
* getcode() – return the HTTP status code of the response. Raises URLError
|
* getcode() - return the HTTP status code of the response. Raises URLError
|
||||||
on errors.
|
on errors.
|
||||||
|
|
||||||
Note that *None& may be returned if no handler handles the request (though
|
Note that *None& may be returned if no handler handles the request (though
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
+++++++++++
|
+++++++++++
|
||||||
Python News
|
Python News
|
||||||
+++++++++++
|
+++++++++++
|
||||||
|
|
||||||
|
|
|
@ -143,7 +143,7 @@ raises an exception.
|
||||||
.TP
|
.TP
|
||||||
.B \-I
|
.B \-I
|
||||||
Run Python in isolated mode. This also implies \fB\-E\fP and \fB\-s\fP. In
|
Run Python in isolated mode. This also implies \fB\-E\fP and \fB\-s\fP. In
|
||||||
isolated mode sys.path contains neither the script’s directory nor the user’s
|
isolated mode sys.path contains neither the script's directory nor the user's
|
||||||
site-packages directory. All PYTHON* environment variables are ignored, too.
|
site-packages directory. All PYTHON* environment variables are ignored, too.
|
||||||
Further restrictions may be imposed to prevent the user from injecting
|
Further restrictions may be imposed to prevent the user from injecting
|
||||||
malicious code.
|
malicious code.
|
||||||
|
|
|
@ -1644,7 +1644,7 @@ The file must be an open file object such as sys.stdout or returned by\n\
|
||||||
open() or os.popen(). It must be opened in binary mode ('wb' or 'w+b').\n\
|
open() or os.popen(). It must be opened in binary mode ('wb' or 'w+b').\n\
|
||||||
\n\
|
\n\
|
||||||
If the value has (or contains an object that has) an unsupported type, a\n\
|
If the value has (or contains an object that has) an unsupported type, a\n\
|
||||||
ValueError exception is raised — but garbage data will also be written\n\
|
ValueError exception is raised - but garbage data will also be written\n\
|
||||||
to the file. The object will not be properly read back by load()\n\
|
to the file. The object will not be properly read back by load()\n\
|
||||||
\n\
|
\n\
|
||||||
The version argument indicates the data format that dump should use.");
|
The version argument indicates the data format that dump should use.");
|
||||||
|
@ -1695,7 +1695,7 @@ PyDoc_STRVAR(load_doc,
|
||||||
"load(file)\n\
|
"load(file)\n\
|
||||||
\n\
|
\n\
|
||||||
Read one value from the open file and return it. If no valid value is\n\
|
Read one value from the open file and return it. If no valid value is\n\
|
||||||
read (e.g. because the data has a different Python version’s\n\
|
read (e.g. because the data has a different Python version's\n\
|
||||||
incompatible marshal format), raise EOFError, ValueError or TypeError.\n\
|
incompatible marshal format), raise EOFError, ValueError or TypeError.\n\
|
||||||
The file must be an open file object opened in binary mode ('rb' or\n\
|
The file must be an open file object opened in binary mode ('rb' or\n\
|
||||||
'r+b').\n\
|
'r+b').\n\
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue