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
d7d1b9cd
Commit
d7d1b9cd
authored
Aug 10, 2013
by
R David Murray
Browse files
Options
Browse Files
Download
Plain Diff
Merge heads.
parents
fa47c710
13373264
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
8 deletions
+5
-8
Lib/email/architecture.rst
Lib/email/architecture.rst
+3
-3
Lib/email/generator.py
Lib/email/generator.py
+1
-1
Lib/test/test_email/test_email.py
Lib/test/test_email/test_email.py
+1
-4
No files found.
Lib/email/architecture.rst
View file @
d7d1b9cd
...
@@ -24,9 +24,9 @@ The email package consists of three major components:
...
@@ -24,9 +24,9 @@ The email package consists of three major components:
Conceptually the package is organized around the model. The model provides both
Conceptually the package is organized around the model. The model provides both
"external" APIs intended for use by application programs using the library,
"external" APIs intended for use by application programs using the library,
and "internal" APIs intended for use by the Parser and Generator components.
and "internal" APIs intended for use by the Parser and Generator components.
This division is intentionally a bit fuz
y; the API described by this documentation
This division is intentionally a bit fuz
zy; the API described by this
is all a public, stable API. This allows for an application with special needs
documentation is all a public, stable API. This allows for an application
to implement its own parser and/or generator.
with special needs
to implement its own parser and/or generator.
In addition to the three major functional components, there is a third key
In addition to the three major functional components, there is a third key
component to the architecture:
component to the architecture:
...
...
Lib/email/generator.py
View file @
d7d1b9cd
...
@@ -349,7 +349,7 @@ class Generator:
...
@@ -349,7 +349,7 @@ class Generator:
# This used to be a module level function; we use a classmethod for this
# This used to be a module level function; we use a classmethod for this
# and _compile_re so we can continue to provide the module level function
# and _compile_re so we can continue to provide the module level function
# for backward compatibility by doing
# for backward compatibility by doing
# _make_boudary = Generator._make_boundary
# _make_bou
n
dary = Generator._make_boundary
# at the end of the module. It *is* internal, so we could drop that...
# at the end of the module. It *is* internal, so we could drop that...
@
classmethod
@
classmethod
def
_make_boundary
(
cls
,
text
=
None
):
def
_make_boundary
(
cls
,
text
=
None
):
...
...
Lib/test/test_email/test_email.py
View file @
d7d1b9cd
...
@@ -926,7 +926,7 @@ Subject: the first part of this is short,
...
@@ -926,7 +926,7 @@ Subject: the first part of this is short,
This is a long line that has two whitespaces in a row. This used to cause
This is a long line that has two whitespaces in a row. This used to cause
truncation of the header when folded"""
)
truncation of the header when folded"""
)
def
test_splitter_split_on_punctuation_only_if_fws
(
self
):
def
test_splitter_split_on_punctuation_only_if_fws
_with_header
(
self
):
eq
=
self
.
ndiffAssertEqual
eq
=
self
.
ndiffAssertEqual
h
=
Header
(
'thisverylongheaderhas;semicolons;and,commas,but'
h
=
Header
(
'thisverylongheaderhas;semicolons;and,commas,but'
'they;arenotlegal;fold,points'
)
'they;arenotlegal;fold,points'
)
...
@@ -4214,9 +4214,6 @@ class TestQuopri(unittest.TestCase):
...
@@ -4214,9 +4214,6 @@ class TestQuopri(unittest.TestCase):
self
.
_test_encode
(
'x'
*
200
+
'
\
n
'
,
self
.
_test_encode
(
'x'
*
200
+
'
\
n
'
,
2
*
(
'x'
*
75
+
'=
\
n
'
)
+
'x'
*
50
+
'
\
n
'
)
2
*
(
'x'
*
75
+
'=
\
n
'
)
+
'x'
*
50
+
'
\
n
'
)
def
test_encode_one_long_line
(
self
):
self
.
_test_encode
(
'x'
*
100
+
'
\
n
'
,
'x'
*
75
+
'=
\
n
'
+
'x'
*
25
+
'
\
n
'
)
def
test_encode_shortest_maxlinelen
(
self
):
def
test_encode_shortest_maxlinelen
(
self
):
self
.
_test_encode
(
'='
*
5
,
'=3D=
\
n
'
*
4
+
'=3D'
,
maxlinelen
=
4
)
self
.
_test_encode
(
'='
*
5
,
'=3D=
\
n
'
*
4
+
'=3D'
,
maxlinelen
=
4
)
...
...
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