cpython/Lib/email/mime
Barry Warsaw 1fcb39ea64
gh-91520: Rewrite imghdr inlining for clarity and completeness (#91521)
* Rewrite imghdr inlining for clarity and completeness

* Move MIMEImage class back closer to the top of the file since it's the
  important thing.
* Use a decorate to mark a given rule function and simplify the rule function
  names for clarity.
* Copy over all the imghdr test data files into the email package's test data
  directory.  This way when imghdr is actually removed, it won't affect the
  MIMEImage guessing tests.
* Rewrite and extend the MIMEImage tests to test for all supported
  auto-detected MIME image subtypes.
* Remove the now redundant PyBanner048.gif data file.

* See https://github.com/python/cpython/pull/91461#discussion_r850313336

Co-authored-by: Oleg Iarygin <dralife@yandex.ru>

Co-authored-by: Oleg Iarygin <dralife@yandex.ru>
2022-04-14 17:48:59 -07:00
..
__init__.py Copying the email package back, despite its failings. 2007-08-30 01:15:14 +00:00
application.py #27331: add policy keyword argument to all MIME subclasses. 2016-09-07 16:48:35 -04:00
audio.py #27331: add policy keyword argument to all MIME subclasses. 2016-09-07 16:48:35 -04:00
base.py #27331: add policy keyword argument to all MIME subclasses. 2016-09-07 16:48:35 -04:00
image.py gh-91520: Rewrite imghdr inlining for clarity and completeness (#91521) 2022-04-14 17:48:59 -07:00
message.py #27331: add policy keyword argument to all MIME subclasses. 2016-09-07 16:48:35 -04:00
multipart.py #27331: add policy keyword argument to all MIME subclasses. 2016-09-07 16:48:35 -04:00
nonmultipart.py Closes #19434: fix copy-paste error in MIMENonMultipart docstring. 2014-10-02 12:35:08 +02:00
text.py Issue #27445: Merge from 3.5 2016-09-08 19:42:11 +03:00