Home
last modified time | relevance | path

Searched refs:maxheaderlen (Results 1 – 17 of 17) sorted by relevance

/external/python/cpython3/Lib/email/
Dgenerator.py36 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,
Dmessage.py137 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(maxheaderlen=maxheaderlen, policy=policy)
/external/python/cpython2/Lib/email/
Dgenerator.py42 def __init__(self, outfp, mangle_from_=True, maxheaderlen=78): argument
61 self._maxheaderlen = maxheaderlen
302 def __init__(self, outfp, mangle_from_=True, maxheaderlen=78, fmt=None): argument
324 Generator.__init__(self, outfp, mangle_from_, maxheaderlen)
/external/python/cpython2/Doc/library/
Demail.generator.rst29 .. class:: Generator(outfp[, mangle_from_[, maxheaderlen]])
44 Optional *maxheaderlen* specifies the longest length for a non-continued header.
45 When a header line is longer than *maxheaderlen* (in characters, with tabs
96 .. class:: DecodedGenerator(outfp[, mangle_from_[, maxheaderlen[, fmt]]])
100 decoded payload of the subpart. Optional *_mangle_from_* and *maxheaderlen* are
132 ``unixfrom`` argument, and that you set maxheaderlen=0 (which will
Demail.message.rst57 g = Generator(fp, mangle_from_=False, maxheaderlen=60)
/external/python/cpython3/Doc/library/
Demail.generator.rst44 .. 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
Demail.compat32-message.rst67 .. 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)
Demail.message.rst62 .. 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*
/external/python/cpython3/Lib/test/test_email/
Dtest_generator.py90 g = self.genclass(s, maxheaderlen=n, policy=self.policy)
104 g = self.genclass(s, maxheaderlen=n,
Dtest_email.py1247 eq(msg.as_string(maxheaderlen=76), """\
1252 eq(msg.as_string(maxheaderlen=0), """\
1264 eq(msg.as_string(maxheaderlen=78), """\
1272 eq(msg.as_string(maxheaderlen=78), """\
1287 eq(msg.as_string(maxheaderlen=78), '''\
1335 self.ndiffAssertEqual(msg.as_string(maxheaderlen=78), """\
1354 self.ndiffAssertEqual(msg.as_string(maxheaderlen=78), """\
1375 eq(msg.as_string(maxheaderlen=78), """\
1395 eq(msg.as_string(maxheaderlen=78), '''\
1410 eq(msg.as_string(maxheaderlen=78), """\
[all …]
Dtest_message.py773 self.assertEqual(len(m.as_string(maxheaderlen=0).strip().splitlines()),
775 self.assertEqual(len(m.as_string(maxheaderlen=34).strip().splitlines()),
Dtest_contentmanager.py557 self.assertEqual(m.as_string(maxheaderlen=self.policy.max_line_length),
/external/python/apitools/apitools/base/py/
Dbatch.py359 gen = generator.Generator(str_io, maxheaderlen=0)
/external/python/cpython2/Lib/email/test/
Dtest_email_renamed.py1925 g = Generator(s, maxheaderlen=0)
2074 g = Generator(s, maxheaderlen=0)
2087 g = Generator(s, maxheaderlen=0)
Dtest_email.py2009 g = Generator(s, maxheaderlen=0)
2158 g = Generator(s, maxheaderlen=0)
2171 g = Generator(s, maxheaderlen=0)
/external/python/google-api-python-client/googleapiclient/
Dhttp.py1311 g = Generator(fp, maxheaderlen=0)
/external/python/cpython3/Doc/whatsnew/
D3.4.rst804 produces a string representation. It does not accept the *maxheaderlen*