Home
last modified time | relevance | path

Searched refs:message_from_string (Results 1 – 23 of 23) sorted by relevance

/external/python/cpython2/Lib/email/test/
Dtest_email_renamed.py265 msg = email.message_from_string("Content-Type: blarg; baz; boo\n")
269 msg = email.message_from_string("From: foo\n")
273 msg = email.message_from_string(
278 msg = email.message_from_string("From: foo\n")
283 msg = email.message_from_string(
287 msg = email.message_from_string(
292 msg = email.message_from_string(
304 msg = email.message_from_string(
309 msg = email.message_from_string(
324 msg = email.message_from_string(
[all …]
Dtest_email.py306 msg = email.message_from_string("Content-Type: blarg; baz; boo\n")
310 msg = email.message_from_string("From: foo\n")
314 msg = email.message_from_string(
319 msg = email.message_from_string("From: foo\n")
324 msg = email.message_from_string(
328 msg = email.message_from_string(
333 msg = email.message_from_string(
345 msg = email.message_from_string(
350 msg = email.message_from_string(
365 msg = email.message_from_string(
[all …]
/external/python/cpython3/Lib/test/test_email/
Dtest_email.py338 msg = email.message_from_string("Content-Type: blarg; baz; boo\n")
342 msg = email.message_from_string("From: foo\n")
346 msg = email.message_from_string(
351 msg = email.message_from_string("From: foo\n")
356 msg = email.message_from_string(
360 msg = email.message_from_string(
365 msg = email.message_from_string(
378 msg = email.message_from_string(
383 msg = email.message_from_string(
400 msg = email.message_from_string(
[all …]
Dtest_parser.py19 msg = email.message_from_string("Subject: bogus\n\nmsg\n",
96 parsers = (email.message_from_string, message_from_file)
Dtest_generator.py4 from email import message_from_string, message_from_bytes
168 msgfunc = staticmethod(message_from_string)
Dtest_pickleable.py48 msg_params['parsed'] = (email.message_from_string(textwrap.dedent("""\
Dtest_policy.py261 email.message_from_string("Subject: test\n\n",
297 return email.message_from_string(source, policy=self.policy)
D__init__.py49 return email.message_from_string(string, message, policy=policy)
Dtest_message.py3 from email import policy, message_from_string
24 m = message_from_string(textwrap.dedent("""\
/external/python/cpython3/Lib/email/
D__init__.py32 def message_from_string(s, *args, **kws): function
/external/python/cpython2/Lib/email/
D__init__.py51 def message_from_string(s, *args, **kws): function
/external/python/cpython3/Lib/urllib/
Drequest.py1478 headers = email.message_from_string(
1549 headers = email.message_from_string(headers)
1637 headers = email.message_from_string("Content-type: %s\nContent-length: %d\n" %
1996 headers = email.message_from_string(
2068 headers = email.message_from_string(headers)
2109 headers = email.message_from_string(msg)
2362 _noheaders = email.message_from_string("")
/external/python/cpython2/Doc/library/
Demail.parser.rst167 .. function:: message_from_string(s[, _class[, strict]])
189 >>> msg = email.message_from_string(myString)
Demail.rst194 and :func:`email.message_from_string`.
240 * :func:`messageFromString` has been renamed to :func:`message_from_string`.
/external/python/cpython3/Lib/test/
Dtest_mailbox.py69 keys.append(self._box.add(email.message_from_string(_sample_message)))
117 self._box.add(email.message_from_string("From: Alphöso"))
537 for input in (email.message_from_string(_sample_message),
1354 eMM = email.message_from_string(_sample_message)
1400 eMM = email.message_from_string(_sample_message)
1408 eMM = email.message_from_string(_sample_message)
Dtest_urllib2.py474 msg = email.message_from_string(self.headers)
479 msg = email.message_from_string("\r\n\r\n")
Dtest_http_cookiejar.py294 self._headers = email.message_from_string("\n".join(headers))
/external/python/cpython2/Lib/test/
Dtest_mailbox.py69 keys.append(self._box.add(email.message_from_string(_sample_message)))
447 for input in (email.message_from_string(_sample_message),
1213 eMM = email.message_from_string(_sample_message)
1250 eMM = email.message_from_string(_sample_message)
/external/python/cpython3/Doc/library/
Demail.parser.rst262 .. function:: message_from_string(s, _class=None, *, policy=policy.compat32)
Durllib.request.rst64 in the form of an :func:`email.message_from_string` instance (see
/external/python/cpython2/Lib/
Dmailbox.py1459 self._become_message(email.message_from_string(message))
/external/python/cpython3/Lib/
Dmailbox.py1498 self._become_message(email.message_from_string(message))
/external/python/cpython3/Doc/whatsnew/
D3.3.rst1327 >>> m2 = message_from_string(str(m))