Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #12754 -- Reintroduced style.ERROR_OUTPUT as an alias for style…

….ERROR. Django doesn't need this itself, but it would be a backwards incompatible change to remove it. Thanks to Jeff Balogh for the report.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@12376 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit de35bb40af6174bc5d3cb1b12584cbdb11919ca7 1 parent f9a33cb
Russell Keith-Magee authored February 03, 2010

Showing 1 changed file with 3 additions and 0 deletions. Show diff stats Hide diff stats

  1. 3  django/core/management/color.py
3  django/core/management/color.py
@@ -35,6 +35,9 @@ class dummy: pass
35 35
             for role in termcolors.PALETTES[termcolors.NOCOLOR_PALETTE]:
36 36
                 format = color_settings.get(role,{})
37 37
                 setattr(style, role, termcolors.make_style(**format))
  38
+            # For backwards compatibility,
  39
+            # set style for ERROR_OUTPUT == ERROR
  40
+            setattr(style, 'ERROR_OUTPUT', style.ERROR)
38 41
         else:
39 42
             style = no_style()
40 43
     return style

0 notes on commit de35bb4

Please sign in to comment.
Something went wrong with that request. Please try again.