Home
last modified time | relevance | path

Searched refs:BytesParser (Results 1 – 11 of 11) sorted by relevance

/third_party/python/Lib/email/
D__init__.py45 from email.parser import BytesParser
46 return BytesParser(*args, **kws).parsebytes(s)
61 from email.parser import BytesParser
62 return BytesParser(*args, **kws).parse(fp)
Dparser.py79 class BytesParser: class
126 class BytesHeaderParser(BytesParser):
128 return BytesParser.parse(self, fp, headersonly=True)
131 return BytesParser.parsebytes(self, text, headersonly=True)
/third_party/python/Doc/includes/
Demail-read-alternative.py9 from email.parser import BytesParser
16 msg = BytesParser(policy=policy.default).parse(fp)
Demail-headers.py2 from email.parser import BytesParser, Parser
/third_party/python/Doc/library/
Demail.parser.rst56 object`, string, or file, but the :class:`BytesParser` API may be more
128 The :class:`BytesParser` class, imported from the :mod:`email.parser` module,
139 .. class:: BytesParser(_class=None, *, policy=policy.compat32)
141 Create a :class:`BytesParser` instance. The *_class* and *policy*
188 Exactly like :class:`BytesParser`, except that *headersonly*
196 This class is parallel to :class:`BytesParser`, but handles string input.
211 :meth:`BytesParser.parse`.
240 equivalent to ``BytesParser().parsebytes(s)``. Optional *_class* and
241 *policy* are interpreted as with the :class:`~email.parser.BytesParser` class
253 object`. This is equivalent to ``BytesParser().parse(fp)``. *_class* and
[all …]
Demail.generator.rst25 :class:`~email.parser.BytesParser` class and then regenerating the serialized
/third_party/python/Lib/test/test_email/
Dtest_policy.py327 p = email.parser.BytesParser(policy=self.MyPolicy)
Dtest_email.py3644 email.parser.BytesParser().parse(fp)
3649 bytesParser = email.parser.BytesParser
4105 m = email.parser.BytesParser().parse(testfile)
/third_party/python/Misc/NEWS.d/
D3.5.0a1.rst3195 Make sure the email.parser.BytesParser TextIOWrapper is discarded after
/third_party/python/Doc/whatsnew/
D3.2.rst689 :class:`~email.parser.BytesFeedParser` and :class:`~email.parser.BytesParser`
/third_party/python/Misc/
DHISTORY1586 - Issue #21476: Make sure the email.parser.BytesParser TextIOWrapper is
10873 non-ASCII bytes (parsed by a BytesParser) when doing conversion to 7bit-clean