From 5cedef9b503c127283bba0bf68d5728f094bba4a Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Tue, 21 Jul 2015 13:07:45 -0400 Subject: [PATCH] Fixed #25155 -- Removed an inner class in core.management.color for PyPy performance. --- django/core/management/color.py | 6 ++++-- 1 file 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()