Searched refs:maxheaderlen (Results 1 – 10 of 10) sorted by relevance
/third_party/python/Lib/email/ |
D | generator.py | 36 def __init__(self, outfp, mangle_from_=None, maxheaderlen=None, *, argument 65 self.maxheaderlen = maxheaderlen 96 if self.maxheaderlen is not None: 97 policy = policy.clone(max_line_length=self.maxheaderlen) 455 def __init__(self, outfp, mangle_from_=None, maxheaderlen=None, fmt=None, *, argument 478 Generator.__init__(self, outfp, mangle_from_, maxheaderlen,
|
D | message.py | 137 def as_string(self, unixfrom=False, maxheaderlen=0, policy=None): argument 156 maxheaderlen=maxheaderlen, 954 def as_string(self, unixfrom=False, maxheaderlen=None, policy=None): argument 966 if maxheaderlen is None: 967 maxheaderlen = policy.max_line_length 968 return super().as_string(unixfrom, maxheaderlen, policy)
|
/third_party/python/Doc/library/ |
D | email.generator.rst | 44 .. class:: BytesGenerator(outfp, mangle_from_=None, maxheaderlen=None, *, \ 62 If *maxheaderlen* is not ``None``, refold any header lines that are longer 63 than *maxheaderlen*, or if ``0``, do not rewrap any headers. If 78 and *maxheaderlen* parameters is to follow the policy. 145 .. class:: Generator(outfp, mangle_from_=None, maxheaderlen=None, *, \ 163 If *maxheaderlen* is not ``None``, refold any header lines that are longer 164 than *maxheaderlen*, or if ``0``, do not rewrap any headers. If 177 and *maxheaderlen* parameters is to follow the policy. 241 .. class:: DecodedGenerator(outfp, mangle_from_=None, maxheaderlen=None, \ 270 Optional *_mangle_from_* and *maxheaderlen* are as with the
|
D | email.compat32-message.rst | 67 .. method:: as_string(unixfrom=False, maxheaderlen=0, policy=None) 72 *maxheaderlen* defaults to ``0``, so if you want a different value you 93 g = Generator(fp, mangle_from_=True, maxheaderlen=60) 136 g = BytesGenerator(fp, mangle_from_=True, maxheaderlen=60)
|
D | email.message.rst | 62 .. method:: as_string(unixfrom=False, maxheaderlen=None, policy=None) 67 with the base :class:`~email.message.Message` class *maxheaderlen* is 88 .. versionchanged:: 3.6 the default behavior when *maxheaderlen*
|
/third_party/python/Lib/test/test_email/ |
D | test_generator.py | 90 g = self.genclass(s, maxheaderlen=n, policy=self.policy) 104 g = self.genclass(s, maxheaderlen=n,
|
D | test_email.py | 1248 eq(msg.as_string(maxheaderlen=76), """\ 1253 eq(msg.as_string(maxheaderlen=0), """\ 1265 eq(msg.as_string(maxheaderlen=78), """\ 1273 eq(msg.as_string(maxheaderlen=78), """\ 1288 eq(msg.as_string(maxheaderlen=78), '''\ 1336 self.ndiffAssertEqual(msg.as_string(maxheaderlen=78), """\ 1355 self.ndiffAssertEqual(msg.as_string(maxheaderlen=78), """\ 1376 eq(msg.as_string(maxheaderlen=78), """\ 1396 eq(msg.as_string(maxheaderlen=78), '''\ 1411 eq(msg.as_string(maxheaderlen=78), """\ [all …]
|
D | test_message.py | 777 self.assertEqual(len(m.as_string(maxheaderlen=0).strip().splitlines()), 779 self.assertEqual(len(m.as_string(maxheaderlen=34).strip().splitlines()),
|
D | test_contentmanager.py | 557 self.assertEqual(m.as_string(maxheaderlen=self.policy.max_line_length),
|
/third_party/python/Doc/whatsnew/ |
D | 3.4.rst | 804 produces a string representation. It does not accept the *maxheaderlen*
|