Skip to content

Commit dfc1b80

Browse files
committed
Improve compatibility of ColoredFormatter initializer arguments (#64, #75)
This is backwards incompatible with callers using positional arguments to call ColoredFormatter.__init__() however it improves compatibility with the Python standard library.
1 parent 1b7956d commit dfc1b80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coloredlogs/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -992,7 +992,7 @@ class ColoredFormatter(BasicFormatter):
992992
when you call :func:`coloredlogs.install()`.
993993
"""
994994

995-
def __init__(self, fmt=None, datefmt=None, level_styles=None, field_styles=None, style=DEFAULT_FORMAT_STYLE):
995+
def __init__(self, fmt=None, datefmt=None, style=DEFAULT_FORMAT_STYLE, level_styles=None, field_styles=None):
996996
"""
997997
Initialize a :class:`ColoredFormatter` object.
998998

0 commit comments

Comments
 (0)