mirror of https://github.com/django/django.git
Fixed #25155 -- Removed an inner class in core.management.color for PyPy performance.
This commit is contained in:
parent
b60375d4bb
commit
5cedef9b50
|
@ -23,14 +23,16 @@ def supports_color():
|
|||
return True
|
||||
|
||||
|
||||
class Style(object):
|
||||
pass
|
||||
|
||||
|
||||
def make_style(config_string=''):
|
||||
"""
|
||||
Create a Style object from the given config_string.
|
||||
|
||||
If config_string is empty django.utils.termcolors.DEFAULT_PALETTE is used.
|
||||
"""
|
||||
class Style(object):
|
||||
pass
|
||||
|
||||
style = Style()
|
||||
|
||||
|
|
Loading…
Reference in New Issue