From c55cb5b16bea51c365fa5de0d6530efc3b0a8da2 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Wed, 12 Aug 2015 07:00:27 +0200 Subject: [PATCH] config.textwrapper: Remove *args. textwrap.TextWrapper only takes kwargs. --- qutebrowser/config/textwrapper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qutebrowser/config/textwrapper.py b/qutebrowser/config/textwrapper.py index 125cfb6b1..042d9e8b6 100644 --- a/qutebrowser/config/textwrapper.py +++ b/qutebrowser/config/textwrapper.py @@ -26,7 +26,7 @@ class TextWrapper(textwrap.TextWrapper): """Text wrapper customized to be used in configs.""" - def __init__(self, *args, **kwargs): + def __init__(self, **kwargs): kw = { 'width': 72, 'replace_whitespace': False, @@ -36,4 +36,4 @@ class TextWrapper(textwrap.TextWrapper): 'subsequent_indent': '# ', } kw.update(kwargs) - super().__init__(*args, **kw) + super().__init__(**kw)