Commit d7d1b9cd authored by R David Murray's avatar R David Murray

Merge heads.

parents fa47c710 13373264
...@@ -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 fuzy; the API described by this documentation This division is intentionally a bit fuzzy; 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:
......
...@@ -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_boundary = 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):
......
...@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment