astrofrog/astropy — pull request #15 by mdboom (2012-10-26 01:11:33+00:00)
Title: Improvements for #425

Adds an encoding kwarg and expose it through the whole suite of file reading functions in `utils/data.py`. Specify desired encoding correctly in a number of other places.

Test reading a compressed file from a stream, revealing a bug that we should be using `io.BytesIO` instead of `StringIO.StringIO`.