jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/631913 )
Change subject: [cleanup] shorten super() call for _DifferentTypeError ......................................................................
[cleanup] shorten super() call for _DifferentTypeError
Change-Id: I5bb834996fa8b0830d80cf15791d603384b7fbeb --- M pywikibot/config2.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: Mpaa: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/config2.py b/pywikibot/config2.py index 76768b5..48c50be 100644 --- a/pywikibot/config2.py +++ b/pywikibot/config2.py @@ -1012,7 +1012,7 @@ """An error when the required type doesn't match the actual type."""
def __init__(self, name, actual_type, allowed_types): - super(_DifferentTypeError, self).__init__( + super().__init__( 'Configuration variable "{0}" is defined as "{1.__name__}" in ' 'your user-config.py but expected "{2}".' .format(name, actual_type, '", "'.join(t.__name__
pywikibot-commits@lists.wikimedia.org