Commit 5cedef9b authored by Tim Graham's avatar Tim Graham
Browse files

Fixed #25155 -- Removed an inner class in core.management.color for PyPy performance.

parent b60375d4
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -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()