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

Skip to content

Commit 1c25de6

Browse files
committed
Merged revisions 73952 via svnmerge from
svn+ssh://[email protected]/python/trunk (Only docstrings were modified, won't backport to 3.1) ........ r73952 | amaury.forgeotdarc | 2009-07-11 16:33:51 +0200 (sam., 11 juil. 2009) | 4 lines #2622 Import errors in email.message, from a py2app standalone application. Patch by Mads Kiilerich, Reviewed by Barry Warsaw. ........
1 parent c9e6cec commit 1c25de6

5 files changed

Lines changed: 9 additions & 9 deletions

File tree

Lib/email/base64mime.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
2121
This module does not do the line wrapping or end-of-line character conversion
2222
necessary for proper internationalized headers; it only does dumb encoding and
23-
decoding. To deal with the various line wrapping issues, use the email.Header
23+
decoding. To deal with the various line wrapping issues, use the email.header
2424
module.
2525
"""
2626

@@ -104,7 +104,7 @@ def decode(string):
104104
105105
This function does not parse a full MIME header value encoded with
106106
base64 (like =?iso-8895-1?b?bmloISBuaWgh?=) -- please use the high
107-
level email.Header class for that functionality.
107+
level email.header class for that functionality.
108108
"""
109109
if not string:
110110
return bytes()

Lib/email/header.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def decode_header(header):
6161
otherwise a lower-case string containing the name of the character set
6262
specified in the encoded string.
6363
64-
An email.Errors.HeaderParseError may be raised when certain decoding error
64+
An email.errors.HeaderParseError may be raised when certain decoding error
6565
occurs (e.g. a base64 decoding exception).
6666
"""
6767
# If no encoding, just return the header with no charset.

Lib/email/quoprimime.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
allowed in email bodies or headers.
1212
1313
Quoted-printable is very space-inefficient for encoding binary files; use the
14-
email.base64MIME module for that instead.
14+
email.base64mime module for that instead.
1515
1616
This module provides an interface to encode and decode both headers and bodies
1717
with quoted-printable encoding.
@@ -23,7 +23,7 @@
2323
This module does not do the line wrapping or end-of-line character
2424
conversion necessary for proper internationalized headers; it only
2525
does dumb encoding and decoding. To deal with the various line
26-
wrapping issues, use the email.Header module.
26+
wrapping issues, use the email.header module.
2727
"""
2828

2929
__all__ = [
@@ -291,7 +291,7 @@ def header_decode(s):
291291
292292
This function does not parse a full MIME header value encoded with
293293
quoted-printable (like =?iso-8895-1?q?Hello_World?=) -- please use
294-
the high level email.Header class for that functionality.
294+
the high level email.header class for that functionality.
295295
"""
296296
s = s.replace('_', ' ')
297297
return re.sub(r'=\w{2}', _unquote_match, s, re.ASCII)

Lib/email/test/test_email_torture.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
import email
1919
from email import __file__ as testfile
20-
from email.Iterators import _structure
20+
from email.iterators import _structure
2121

2222
def openfile(filename):
2323
from os.path import join, dirname, abspath

Lib/wsgiref/headers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Manage HTTP Response Headers
22
3-
Much of this module is red-handedly pilfered from email.Message in the stdlib,
3+
Much of this module is red-handedly pilfered from email.message in the stdlib,
44
so portions are Copyright (C) 2001,2002 Python Software Foundation, and were
55
written by Barry Warsaw.
66
"""
@@ -184,7 +184,7 @@ def add_header(self, _name, _value, **_params):
184184
185185
h.add_header('content-disposition', 'attachment', filename='bud.gif')
186186
187-
Note that unlike the corresponding 'email.Message' method, this does
187+
Note that unlike the corresponding 'email.message' method, this does
188188
*not* handle '(charset, language, value)' tuples: all values must be
189189
strings or None.
190190
"""

0 commit comments

Comments
 (0)