From 5fb95990865beeb272691b445f9f1b47a469b55b Mon Sep 17 00:00:00 2001 From: Jacob Kaplan-Moss Date: Fri, 8 Aug 2008 18:51:34 +0000 Subject: [PATCH] Fixed #8100: Jython, apparently, is now a TTY. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8239 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/core/management/color.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/django/core/management/color.py b/django/core/management/color.py index 337e0f2e68..f5e39398f4 100644 --- a/django/core/management/color.py +++ b/django/core/management/color.py @@ -11,8 +11,7 @@ def supports_color(): Returns True if the running system's terminal supports color, and False otherwise. """ - unsupported_platform = (sys.platform in ('win32', 'Pocket PC') - or sys.platform.startswith('java')) + unsupported_platform = (sys.platform in ('win32', 'Pocket PC')) # isatty is not always implemented, #6223. is_a_tty = hasattr(sys.stdout, 'isatty') and sys.stdout.isatty() if unsupported_platform or not is_a_tty: