Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
540f0451
Commit
540f0451
authored
Aug 10, 2016
by
Martin Panter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct misspellings of ISO-8859
parent
4199bbaf
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
Doc/library/http.client.rst
Doc/library/http.client.rst
+2
-2
Lib/email/base64mime.py
Lib/email/base64mime.py
+1
-1
Lib/email/quoprimime.py
Lib/email/quoprimime.py
+1
-1
Lib/test/test_email/test_email.py
Lib/test/test_email/test_email.py
+2
-2
No files found.
Doc/library/http.client.rst
View file @
540f0451
...
@@ -227,12 +227,12 @@ HTTPConnection Objects
...
@@ -227,12 +227,12 @@ HTTPConnection Objects
If *body* is specified, the specified data is sent after the headers are
If *body* is specified, the specified data is sent after the headers are
finished. It may be a string, a :term:`bytes-like object`, an open
finished. It may be a string, a :term:`bytes-like object`, an open
:term:`file object`, or an iterable of :term:`bytes-like object`\s. If
:term:`file object`, or an iterable of :term:`bytes-like object`\s. If
*body* is a string, it is encoded as ISO-885
1
-1, the default for HTTP. If
*body* is a string, it is encoded as ISO-885
9
-1, the default for HTTP. If
it is a bytes-like object the bytes are sent as is. If it is a :term:`file
it is a bytes-like object the bytes are sent as is. If it is a :term:`file
object`, the contents of the file is sent; this file object should support
object`, the contents of the file is sent; this file object should support
at least the ``read()`` method. If the file object has a ``mode``
at least the ``read()`` method. If the file object has a ``mode``
attribute, the data returned by the ``read()`` method will be encoded as
attribute, the data returned by the ``read()`` method will be encoded as
ISO-885
1
-1 unless the ``mode`` attribute contains the substring ``b``,
ISO-885
9
-1 unless the ``mode`` attribute contains the substring ``b``,
otherwise the data returned by ``read()`` is sent as is. If *body* is an
otherwise the data returned by ``read()`` is sent as is. If *body* is an
iterable, the elements of the iterable are sent as is until the iterable is
iterable, the elements of the iterable are sent as is until the iterable is
exhausted.
exhausted.
...
...
Lib/email/base64mime.py
View file @
540f0451
...
@@ -103,7 +103,7 @@ def decode(string):
...
@@ -103,7 +103,7 @@ def decode(string):
"""Decode a raw base64 string, returning a bytes object.
"""Decode a raw base64 string, returning a bytes object.
This function does not parse a full MIME header value encoded with
This function does not parse a full MIME header value encoded with
base64 (like =?iso-88
95
-1?b?bmloISBuaWgh?=) -- please use the high
base64 (like =?iso-88
59
-1?b?bmloISBuaWgh?=) -- please use the high
level email.header class for that functionality.
level email.header class for that functionality.
"""
"""
if
not
string
:
if
not
string
:
...
...
Lib/email/quoprimime.py
View file @
540f0451
...
@@ -292,7 +292,7 @@ def header_decode(s):
...
@@ -292,7 +292,7 @@ def header_decode(s):
"""Decode a string encoded with RFC 2045 MIME header `Q' encoding.
"""Decode a string encoded with RFC 2045 MIME header `Q' encoding.
This function does not parse a full MIME header value encoded with
This function does not parse a full MIME header value encoded with
quoted-printable (like =?iso-88
95
-1?q?Hello_World?=) -- please use
quoted-printable (like =?iso-88
59
-1?q?Hello_World?=) -- please use
the high level email.header class for that functionality.
the high level email.header class for that functionality.
"""
"""
s
=
s
.
replace
(
'_'
,
' '
)
s
=
s
.
replace
(
'_'
,
' '
)
...
...
Lib/test/test_email/test_email.py
View file @
540f0451
...
@@ -2302,9 +2302,9 @@ Re: =?mac-iceland?q?r=8Aksm=9Arg=8Cs?= baz foo bar =?mac-iceland?q?r=8Aksm?=
...
@@ -2302,9 +2302,9 @@ Re: =?mac-iceland?q?r=8Aksm=9Arg=8Cs?= baz foo bar =?mac-iceland?q?r=8Aksm?=
def
test_rfc2047_Q_invalid_digits
(
self
):
def
test_rfc2047_Q_invalid_digits
(
self
):
# issue 10004.
# issue 10004.
s
=
'=?iso-8
6
59-1?Q?andr=e9=zz?='
s
=
'=?iso-8
8
59-1?Q?andr=e9=zz?='
self
.
assertEqual
(
decode_header
(
s
),
self
.
assertEqual
(
decode_header
(
s
),
[(
b'andr
\
xe9
=zz'
,
'iso-8
6
59-1'
)])
[(
b'andr
\
xe9
=zz'
,
'iso-8
8
59-1'
)])
def
test_rfc2047_rfc2047_1
(
self
):
def
test_rfc2047_rfc2047_1
(
self
):
# 1st testcase at end of rfc2047
# 1st testcase at end of rfc2047
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment