From 8e5c116971f519a4de2cf0a2f178bf990301e38b Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Wed, 3 Feb 2010 00:34:49 +0000 Subject: [PATCH] Revised [12376] with the benefit of coffee. Thanks to Alex Gaynor for paying attention to every commit I make :-) git-svn-id: http://code.djangoproject.com/svn/django/trunk@12377 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/core/management/color.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/core/management/color.py b/django/core/management/color.py index 612afff4e2..8c7a87fe71 100644 --- a/django/core/management/color.py +++ b/django/core/management/color.py @@ -37,7 +37,7 @@ def color_style(): setattr(style, role, termcolors.make_style(**format)) # For backwards compatibility, # set style for ERROR_OUTPUT == ERROR - setattr(style, 'ERROR_OUTPUT', style.ERROR) + style.ERROR_OUTPUT = style.ERROR else: style = no_style() return style