config.textwrapper: Remove *args.
textwrap.TextWrapper only takes kwargs.
This commit is contained in:
parent
927cf84e14
commit
c55cb5b16b
@ -26,7 +26,7 @@ class TextWrapper(textwrap.TextWrapper):
|
|||||||
|
|
||||||
"""Text wrapper customized to be used in configs."""
|
"""Text wrapper customized to be used in configs."""
|
||||||
|
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, **kwargs):
|
||||||
kw = {
|
kw = {
|
||||||
'width': 72,
|
'width': 72,
|
||||||
'replace_whitespace': False,
|
'replace_whitespace': False,
|
||||||
@ -36,4 +36,4 @@ class TextWrapper(textwrap.TextWrapper):
|
|||||||
'subsequent_indent': '# ',
|
'subsequent_indent': '# ',
|
||||||
}
|
}
|
||||||
kw.update(kwargs)
|
kw.update(kwargs)
|
||||||
super().__init__(*args, **kw)
|
super().__init__(**kw)
|
||||||
|
Loading…
Reference in New Issue
Block a user