matplotlib/matplotlib — pull request #963 by cgohlke (2012-06-23 19:25:31+00:00)
Title: Add detection of file extension for file-like objects

Backported from #616