Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3fd4a73

Browse files
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.
2 parents be22a91 + 225821c commit 3fd4a73

6 files changed

Lines changed: 10 additions & 10 deletions

File tree

Lib/http/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -735,9 +735,9 @@ def info(self):
735735
guessed.
736736
737737
When the method is local-file, returned headers will include
738-
a Date representing the files last-modified time, a
738+
a Date representing the file's last-modified time, a
739739
Content-Length giving file size, and a Content-Type
740-
containing a guess at the files type. See also the
740+
containing a guess at the file's type. See also the
741741
description of the mimetools module.
742742
743743
'''

Lib/multiprocessing/connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ def _send_bytes(self, buf):
397397
self._send(header)
398398
self._send(buf)
399399
else:
400-
# Issue #20540: concatenate before sending, to avoid delays due
400+
# Issue #20540: concatenate before sending, to avoid delays due
401401
# to Nagle's algorithm on a TCP socket.
402402
# Also note we want to avoid sending a 0-length buffer separately,
403403
# to avoid "broken pipe" errors if the other end closed the pipe.

Lib/urllib/request.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,14 +179,14 @@ def urlopen(url, data=None, timeout=socket._GLOBAL_DEFAULT_TIMEOUT,
179179
urllib.response.addinfourl object which can work as context manager and has
180180
methods such as:
181181
182-
* geturl() return the URL of the resource retrieved, commonly used to
182+
* geturl() - return the URL of the resource retrieved, commonly used to
183183
determine if a redirect was followed
184184
185-
* info() return the meta-information of the page, such as headers, in the
185+
* info() - return the meta-information of the page, such as headers, in the
186186
form of an email.message_from_string() instance (see Quick Reference to
187187
HTTP Headers)
188188
189-
* getcode() return the HTTP status code of the response. Raises URLError
189+
* getcode() - return the HTTP status code of the response. Raises URLError
190190
on errors.
191191
192192
Note that *None& may be returned if no handler handles the request (though

Misc/NEWS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
+++++++++++
1+
+++++++++++
22
Python News
33
+++++++++++
44

Misc/python.man

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ raises an exception.
143143
.TP
144144
.B \-I
145145
Run Python in isolated mode. This also implies \fB\-E\fP and \fB\-s\fP. In
146-
isolated mode sys.path contains neither the scripts directory nor the users
146+
isolated mode sys.path contains neither the script's directory nor the user's
147147
site-packages directory. All PYTHON* environment variables are ignored, too.
148148
Further restrictions may be imposed to prevent the user from injecting
149149
malicious code.

Python/marshal.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1644,7 +1644,7 @@ The file must be an open file object such as sys.stdout or returned by\n\
16441644
open() or os.popen(). It must be opened in binary mode ('wb' or 'w+b').\n\
16451645
\n\
16461646
If the value has (or contains an object that has) an unsupported type, a\n\
1647-
ValueError exception is raised but garbage data will also be written\n\
1647+
ValueError exception is raised - but garbage data will also be written\n\
16481648
to the file. The object will not be properly read back by load()\n\
16491649
\n\
16501650
The version argument indicates the data format that dump should use.");
@@ -1695,7 +1695,7 @@ PyDoc_STRVAR(load_doc,
16951695
"load(file)\n\
16961696
\n\
16971697
Read one value from the open file and return it. If no valid value is\n\
1698-
read (e.g. because the data has a different Python versions\n\
1698+
read (e.g. because the data has a different Python version's\n\
16991699
incompatible marshal format), raise EOFError, ValueError or TypeError.\n\
17001700
The file must be an open file object opened in binary mode ('rb' or\n\
17011701
'r+b').\n\

0 commit comments

Comments
 (0)