matplotlib/matplotlib — pull request #2311 by andreabedini (2013-08-19 06:19:01+00:00)
Title: Use mimetypes module rather than try to implement our own

I typed this directly on github, I hope it's fine.