Fixed #25155 -- Removed an inner class in core.management.color for PyPy performance.

This commit is contained in:
Tim Graham 2015-07-21 13:07:45 -04:00
parent b60375d4bb
commit 5cedef9b50
1 changed files with 4 additions and 2 deletions

View File

@ -23,14 +23,16 @@ def supports_color():
return True return True
class Style(object):
pass
def make_style(config_string=''): def make_style(config_string=''):
""" """
Create a Style object from the given config_string. Create a Style object from the given config_string.
If config_string is empty django.utils.termcolors.DEFAULT_PALETTE is used. If config_string is empty django.utils.termcolors.DEFAULT_PALETTE is used.
""" """
class Style(object):
pass
style = Style() style = Style()