mirror of
https://github.com/django/django.git
synced 2025-02-08 08:26:13 +00:00
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…
x
Reference in New Issue
Block a user