Home
last modified time | relevance | path

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

/external/python/cpython2/Lib/email/mime/
Dimage.py19 def __init__(self, _imagedata, _subtype=None, argument
40 if _subtype is None:
41 _subtype = imghdr.what(None, _imagedata)
42 if _subtype is None:
44 MIMENonMultipart.__init__(self, 'image', _subtype, **_params)
Daudio.py45 def __init__(self, _audiodata, _subtype=None, argument
67 if _subtype is None:
68 _subtype = _whatsnd(_audiodata)
69 if _subtype is None:
71 MIMENonMultipart.__init__(self, 'audio', _subtype, **_params)
Dapplication.py16 def __init__(self, _data, _subtype='octet-stream', argument
32 if _subtype is None:
34 MIMENonMultipart.__init__(self, 'application', _subtype, **_params)
Dbase.py16 def __init__(self, _maintype, _subtype, **_params): argument
24 ctype = '%s/%s' % (_maintype, _subtype)
Dtext.py17 def __init__(self, _text, _subtype='plain', _charset='us-ascii'): argument
28 MIMENonMultipart.__init__(self, 'text', _subtype,
Dmessage.py17 def __init__(self, _msg, _subtype='rfc822'): argument
27 MIMENonMultipart.__init__(self, 'message', _subtype)
Dmultipart.py16 def __init__(self, _subtype='mixed', boundary=None, _subparts=None, argument
36 MIMEBase.__init__(self, 'multipart', _subtype, **_params)
/external/python/cpython3/Lib/email/mime/
Dimage.py19 def __init__(self, _imagedata, _subtype=None, argument
40 if _subtype is None:
41 _subtype = imghdr.what(None, _imagedata)
42 if _subtype is None:
44 MIMENonMultipart.__init__(self, 'image', _subtype, policy=policy,
Daudio.py45 def __init__(self, _audiodata, _subtype=None, argument
67 if _subtype is None:
68 _subtype = _whatsnd(_audiodata)
69 if _subtype is None:
71 MIMENonMultipart.__init__(self, 'audio', _subtype, policy=policy,
Dapplication.py16 def __init__(self, _data, _subtype='octet-stream', argument
32 if _subtype is None:
34 MIMENonMultipart.__init__(self, 'application', _subtype, policy=policy,
Dmessage.py17 def __init__(self, _msg, _subtype='rfc822', *, policy=None): argument
27 MIMENonMultipart.__init__(self, 'message', _subtype, policy=policy)
Dmultipart.py16 def __init__(self, _subtype='mixed', boundary=None, _subparts=None, argument
37 MIMEBase.__init__(self, 'multipart', _subtype, policy=policy, **_params)
Dbase.py18 def __init__(self, _maintype, _subtype, *, policy=None, **_params): argument
28 ctype = '%s/%s' % (_maintype, _subtype)
Dtext.py17 def __init__(self, _text, _subtype='plain', _charset=None, *, policy=None): argument
39 MIMENonMultipart.__init__(self, 'text', _subtype, policy=policy,
/external/python/cpython2/Doc/library/
Demail.mime.rst25 .. class:: MIMEBase(_maintype, _subtype, **_params)
36 or :mimetype:`image`), and *_subtype* is the :mailheader:`Content-Type` minor
42 (based on *_maintype*, *_subtype*, and *_params*), and a
64 .. class:: MIMEMultipart([_subtype[, boundary[, _subparts[, _params]]]])
69 class for MIME messages that are :mimetype:`multipart`. Optional *_subtype*
71 message. A :mailheader:`Content-Type` header of :mimetype:`multipart/_subtype`
93 .. class:: MIMEApplication(_data[, _subtype[, _encoder[, **_params]]])
100 byte data. Optional *_subtype* specifies the MIME subtype and defaults to
120 .. class:: MIMEAudio(_audiodata[, _subtype[, _encoder[, **_params]]])
129 Otherwise you can explicitly specify the audio subtype via the *_subtype*
[all …]
Demail.rst317 and *_minor* have changed to *_maintype* and *_subtype* respectively.
320 argument has been renamed to *_subtype*.
323 argument has been renamed to *_subtype*.
332 with main type :mimetype:`message`. It takes an optional argument *_subtype*
333 which is used to set the MIME subtype. *_subtype* defaults to
/external/python/cpython3/Doc/library/
Demail.mime.rst33 .. class:: MIMEBase(_maintype, _subtype, *, policy=compat32, **_params)
44 or :mimetype:`image`), and *_subtype* is the :mailheader:`Content-Type` minor
54 (based on *_maintype*, *_subtype*, and *_params*), and a
77 .. class:: MIMEMultipart(_subtype='mixed', boundary=None, _subparts=None, \
83 class for MIME messages that are :mimetype:`multipart`. Optional *_subtype*
85 message. A :mailheader:`Content-Type` header of :mimetype:`multipart/_subtype`
109 .. class:: MIMEApplication(_data, _subtype='octet-stream', \
118 byte data. Optional *_subtype* specifies the MIME subtype and defaults to
140 .. class:: MIMEAudio(_audiodata, _subtype=None, \
151 Otherwise you can explicitly specify the audio subtype via the *_subtype*
[all …]
Demail.encoders.rst17 class sets the content type and CTE header using the *_subtype* and *_charset*
/external/python/cpython2/Doc/includes/
Demail-dir.py81 msg = MIMEText(fp.read(), _subtype=subtype)
85 msg = MIMEImage(fp.read(), _subtype=subtype)
89 msg = MIMEAudio(fp.read(), _subtype=subtype)
/external/clang/tools/scan-view/share/
DReporter.py96 msg = MIMEText(fp.read(), _subtype=subtype)
129 msg.attach(MIMEText(mainMsg, _subtype='text/plain'))
/external/python/cpython3/Lib/email/
Dheaderregistry.py475 self._subtype = utils._sanitize(self._parse_tree.subtype)
483 return self._subtype
Dmessage.py1139 def _add_multipart(self, _subtype, *args, _disp=None, **kw): argument
1141 self.get_content_subtype() != _subtype):
1142 getattr(self, 'make_' + _subtype)()
/external/python/pyasn1/docs/source/pyasn1/
Dcontents.rst117 .. _subtype: