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