[3.10] gh-101021: Document binary parameters as bytes (GH-101024). by warsaw · Pull Request #101052 · python/cpython · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Doc/library/email.mime.rst
2 changes: 1 addition & 1 deletion Lib/email/mime/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def __init__(self, _data, _subtype='octet-stream',
_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'.
Expand Down
2 changes: 1 addition & 1 deletion Lib/email/mime/audio.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def __init__(self, _audiodata, _subtype=None,
_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 by the standard Python `sndhdr' module, then the
subtype will be automatically included in the Content-Type header.
Otherwise, you can specify the specific audio subtype via the
Expand Down
2 changes: 1 addition & 1 deletion Lib/email/mime/image.py