diff options
author | Barry Warsaw <barry@python.org> | 2023-01-14 21:31:59 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-14 21:31:59 -0800 |
commit | 78c9f39352a04e07ee4de7746c797ca79b5270d7 (patch) | |
tree | 61107eade7b39882dbdf9e16cbf5e84f71196cc8 /Lib/email/mime/image.py | |
parent | 1981db9de1f2ce4057de8db1497cd924be82a717 (diff) | |
download | cpython-git-78c9f39352a04e07ee4de7746c797ca79b5270d7.tar.gz |
[3.10] gh-101021: Document binary parameters as bytes (GH-101024). (#101052)
(cherry picked from commit 49cae39ef020eaf242607bb2d2d193760b9855a6)
Co-authored-by: Bob Kline <bkline@users.noreply.github.com>
Co-authored-by: Bob Kline <bkline@users.noreply.github.com>
Diffstat (limited to 'Lib/email/mime/image.py')
-rw-r--r-- | Lib/email/mime/image.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/email/mime/image.py b/Lib/email/mime/image.py index 92724643cd..6dc7ec4ca2 100644 --- a/Lib/email/mime/image.py +++ b/Lib/email/mime/image.py @@ -20,7 +20,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 this data + _imagedata contains the bytes for the raw image data. If the data can be decoded by the standard Python `imghdr' module, then the subtype will be automatically included in the Content-Type header. Otherwise, you can specify the specific image subtype via the _subtype |