astropy/astropy — pull request #241 by eteq (2012-05-17 06:15:30+00:00)
Title: adjusted isatty to return True when ipython qtconsole is in use

This adds an extra change to `astropy.utils.console.isatty` to return True when the IPython qtconsole is in use. the `stdout` for the qtconsole says it is not a tty, but for all the purposes we are concerned about (color printing, download indicators, etc), it basically acts as one. Given how nice it the qtconsole is, it seems better to special-case it as a "known-good" configuration.

@mdboom, given you wrote most of this module, does it seem ok to you? It might be a minor performance hit, but I don't think it should be very noticeable in any reasonable situations...