diff options
author | Bob Kline <bkline@users.noreply.github.com> | 2023-01-14 19:01:27 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-14 19:01:27 (GMT) |
commit | 49cae39ef020eaf242607bb2d2d193760b9855a6 (patch) | |
tree | 60e1123ff5d56e3ab534a48540815265e13a3934 /Lib/email | |
parent | ef633e5000222a3dba74473c49d6a81fca0a44ec (diff) | |
download | cpython-49cae39ef020eaf242607bb2d2d193760b9855a6.zip cpython-49cae39ef020eaf242607bb2d2d193760b9855a6.tar.gz cpython-49cae39ef020eaf242607bb2d2d193760b9855a6.tar.bz2 |
gh-101021: Document binary parameters as bytes (#101024)
Diffstat (limited to 'Lib/email')
-rw-r--r-- | Lib/email/mime/application.py | 2 | ||||
-rw-r--r-- | Lib/email/mime/audio.py | 2 | ||||
-rw-r--r-- | Lib/email/mime/image.py | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/Lib/email/mime/application.py b/Lib/email/mime/application.py index 6877e55..f67cbad 100644 --- a/Lib/email/mime/application.py +++ b/Lib/email/mime/application.py @@ -17,7 +17,7 @@ class MIMEApplication(MIMENonMultipart): _encoder=encoders.encode_base64, *, policy=None, **_params): """Create an application/* type MIME document. - _data is a string containing the raw application data. + _data contains the bytes for the raw application data. _subtype is the MIME content type subtype, defaulting to 'octet-stream'. diff --git a/Lib/email/mime/audio.py b/Lib/email/mime/audio.py index 8815f5c..065819b 100644 --- a/Lib/email/mime/audio.py +++ b/Lib/email/mime/audio.py @@ -18,7 +18,7 @@ class MIMEAudio(MIMENonMultipart): _encoder=encoders.encode_base64, *, policy=None, **_params): """Create an audio/* type MIME document. - _audiodata is a string containing the raw audio data. If this data + _audiodata contains the bytes for the raw audio data. If this data can be decoded as au, wav, aiff, or aifc, then the subtype will be automatically included in the Content-Type header. Otherwise, you can specify the specific audio subtype via the diff --git a/Lib/email/mime/image.py b/Lib/email/mime/image.py index e19dea9..4b7f2f9 100644 --- a/Lib/email/mime/image.py +++ b/Lib/email/mime/image.py @@ -17,7 +17,7 @@ class MIMEImage(MIMENonMultipart): _encoder=encoders.encode_base64, *, policy=None, **_params): """Create an image/* type MIME document. - _imagedata is a string containing the raw image data. If the data + _imagedata contains the bytes for the raw image data. If the data type can be detected (jpeg, png, gif, tiff, rgb, pbm, pgm, ppm, rast, xbm, bmp, webp, and exr attempted), then the subtype will be automatically included in the Content-Type header. Otherwise, you can |