﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
6223	Do not call isatty if it doesn't exist	mamadou <tobutaz+django@…>	Gary Wilson	"In source:django/trunk/django/core/management/color.py
{{{
    if (sys.platform == 'win32' or sys.platform == 'Pocket PC'
        or sys.platform.startswith('java') or not sys.stdout.isatty()):
}}}

Should be replaced by:
{{{
    if not (hasattr(sys.stdout, 'isatty') and sys.stdout.isatty()):
}}}

Because according to the [http://docs.python.org/lib/bltin-file-objects.html python docs], isatty isn't mandatory to implement.

In practice, isatty isn't implemented when importing django classes from a twistd daemon, hence a crash.
"		closed	Uncategorized	dev		fixed			Accepted	1	0	0	0	0	0
