Home
last modified time | relevance | path

Searched refs:mimetools (Results 1 – 25 of 31) sorted by relevance

12

/external/python/cpython2/Lib/test/
Dtest_mimetools.py7 mimetools = test_support.import_module("mimetools", deprecated=True) variable
9 msgtext1 = mimetools.Message(StringIO.StringIO(
24 mimetools.encode(i, o, enc)
27 mimetools.decode(i, o, enc)
33 nb = mimetools.choose_boundary()
38 msg = mimetools.Message(StringIO.StringIO(msgtext1))
Dtest_multifile.py2 mimetools = test_support.import_module('mimetools', deprecated=True) variable
42 msg = mimetools.Message(mf)
Dtest_urllibnet.py19 mimetools = test_support.import_module("mimetools", deprecated=True) variable
97 self.assertIsInstance(info_obj, mimetools.Message,
192 self.assertIsInstance(header, mimetools.Message,
Dtest_xmlrpc.py8 import mimetools
876 class FailingMessageClass(mimetools.Message):
881 return mimetools.Message.__getitem__(self, key)
902 SimpleXMLRPCServer.SimpleXMLRPCRequestHandler.MessageClass = mimetools.Message
Dtest_urllib.py10 import mimetools
128 self.assertIsInstance(self.returned_obj.info(), mimetools.Message)
424 self.assertIsInstance(result[1], mimetools.Message,
Dtest_urllib2_localnet.py11 mimetools = test_support.import_module('mimetools', deprecated=True) variable
635 self.assertIsInstance(info_obj, mimetools.Message,
Dtest_urllib2.py423 import mimetools, copy
429 msg = mimetools.Message(StringIO(self.headers))
434 msg = mimetools.Message(StringIO("\r\n\r\n"))
Dtest_cookielib.py240 import mimetools, StringIO
242 self._headers = mimetools.Message(f)
/external/python/cpython2/Doc/library/
Dmimetools.rst2 :mod:`mimetools` --- Tools for parsing MIME messages
5 .. module:: mimetools
11 The :mod:`email` package should be used in preference to the :mod:`mimetools`
69 Comprehensive email handling package; supersedes the :mod:`mimetools` module.
72 Provides the base class for :class:`mimetools.Message`.
Dnetdata.rst19 mimetools.rst
Dmultifile.rst163 import mimetools
171 msg = mimetools.Message(stream)
181 submsg = mimetools.Message(file)
184 mimetools.decode(file, data, submsg.getencoding())
Dmhlib.rst35 class is derived from :class:`mimetools.Message`.
201 :class:`mimetools.Message`:
Dbasehttpserver.rst162 .. index:: single: Message (in module mimetools)
166 :class:`mimetools.Message`.
Durllib.rst60 .. index:: module: mimetools
63 :class:`mimetools.Message` containing meta-information associated with the
72 file's type. See also the description of the :mod:`mimetools` module.
365 :class:`mimetools.Message` object containing the response headers (for remote
Dhttplib.rst118 response. It is implemented using the :class:`mimetools.Message` class and
568 A :class:`mimetools.Message` instance containing the response headers.
Drfc822.rst136 Module :mod:`mimetools`
Demail.rst17 :mod:`mimetools`, :mod:`multifile`, and other non-standard packages such as
/external/python/cpython2/Lib/
DMimeWriter.py13 import mimetools
158 self._boundary = boundary or mimetools.choose_boundary()
DBaseHTTPServer.py81 import mimetools
518 MessageClass = mimetools.Message
Durllib.py473 import mimetypes, mimetools, email.utils
487 headers = mimetools.Message(StringIO(
512 import mimetypes, mimetools
565 headers = mimetools.Message(StringIO(headers))
581 import mimetools
611 headers = mimetools.Message(f, 0)
850 import mimetools
855 _noheaders = mimetools.Message(StringIO(), 0)
Dmhlib.py82 import mimetools
663 class Message(mimetools.Message):
672 mimetools.Message.__init__(self, fp)
709 mimetools.decode(self.fp, output, encoding)
Dcgi.py50 import mimetools
235 headers = mimetools.Message(fp)
Durllib2.py95 import mimetools
1362 headers = mimetools.Message(StringIO(
1428 headers = mimetools.Message(sf)
Dhttplib.py80 import mimetools
255 class HTTPMessage(mimetools.Message):
Dpydoc.py2047 import BaseHTTPServer, mimetools, select
2050 class Message(mimetools.Message):

12