diff options
| author | Tim Graham <timograham@gmail.com> | 2015-07-21 13:07:45 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-07-21 13:07:45 -0400 |
| commit | 5cedef9b503c127283bba0bf68d5728f094bba4a (patch) | |
| tree | 895fc1e8896160f74c988b662311727c9658bc62 | |
| parent | b60375d4bbb848af7950379e2f35a1a65f7a2591 (diff) | |
Fixed #25155 -- Removed an inner class in core.management.color for PyPy performance.
| -rw-r--r-- | django/core/management/color.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/django/core/management/color.py b/django/core/management/color.py index 96dd557556..3803ea3e3e 100644 --- a/django/core/management/color.py +++ b/django/core/management/color.py @@ -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() |
