Ticket #8100: jython_now_has_isatty.diff
File jython_now_has_isatty.diff, 677 bytes (added by , 16 years ago) |
---|
-
django/core/management/color.py
diff -r 35a295a0a8d1 django/core/management/color.py
a b 11 11 Returns True if the running system's terminal supports color, and False 12 12 otherwise. 13 13 """ 14 unsupported_platform = (sys.platform in ('win32', 'Pocket PC') 15 or sys.platform.startswith('java')) 14 unsupported_platform = (sys.platform in ('win32', 'Pocket PC')) 16 15 # isatty is not always implemented, #6223. 17 16 is_a_tty = hasattr(sys.stdout, 'isatty') and sys.stdout.isatty() 18 17 if unsupported_platform or not is_a_tty: