Skip to content

Commit

Permalink
Fixed #8100: Jython, apparently, is now a TTY.
Browse files Browse the repository at this point in the history
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8239 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
jacobian committed Aug 8, 2008
1 parent 176fabc commit 5fb9599
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions django/core/management/color.py
Expand Up @@ -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:
Expand Down

0 comments on commit 5fb9599

Please sign in to comment.