Ticket #5319: color.diff
File color.diff, 601 bytes (added by , 17 years ago) |
---|
-
django/core/management/color.py
7 7 8 8 def color_style(): 9 9 "Returns a Style object with the Django color scheme." 10 if sys.platform == 'win32' or sys.platform == 'Pocket PC' or not sys.stdout.isatty():10 if sys.platform == 'win32' or sys.platform == 'Pocket PC' or sys.platform.startswith('java') or not sys.stdout.isatty(): 11 11 return no_style() 12 12 class dummy: pass 13 13 style = dummy()