File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -103,9 +103,14 @@ def __init__(
103
103
if validate is not None :
104
104
# validate was introduced in py3.8 so we need to only provide it if the user provided it
105
105
_kwargs ["validate" ] = validate
106
- super (StdlibFormatter , self ).__init__ ( # type: ignore[call-arg]
107
- fmt = fmt , datefmt = datefmt , style = style , ** _kwargs
108
- )
106
+ if sys .version_info < (3 , 0 ): # Different args in py2.7
107
+ super (StdlibFormatter , self ).__init__ ( # type: ignore[call-arg]
108
+ fmt = fmt , datefmt = datefmt
109
+ )
110
+ else :
111
+ super (StdlibFormatter , self ).__init__ ( # type: ignore[call-arg]
112
+ fmt = fmt , datefmt = datefmt , style = style , ** _kwargs
113
+ )
109
114
110
115
if stack_trace_limit is not None :
111
116
if not isinstance (stack_trace_limit , int ):
You can’t perform that action at this time.
0 commit comments