mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Fixed #25155 -- Removed an inner class in core.management.color for PyPy performance.
This commit is contained in:
parent
b60375d4bb
commit
5cedef9b50
1 changed files with 4 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue