matplotlib/matplotlib — pull request #1380 by dmcdougall (2012-10-13 16:12:23+00:00)
Title: Fix svg writer for StringIO objects

Fix #1373.

This seems like a really simple fix. I'm a little concerned that it may now be possible to pass something to `print_svg` that doesn't make sense. Hopefully someone will correct me if this is the case.

Also, I kind of feel like the write should be in a `try`/`finally` block, like `print_png` in the `agg` backend.