jenkins-bot has submitted this change and it was merged.
Change subject: [FIX] Indexes in str.format ......................................................................
[FIX] Indexes in str.format
The tools module was using the wrong index.
Change-Id: Icb17bdfc91e923f62120c1584daef683b49cef68 (cherry picked from commit 876582033552377b1244e878b6f7262c19738d09) --- M pywikibot/tools/__init__.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: John Vandenberg: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/tools/__init__.py b/pywikibot/tools/__init__.py index 3c783e9..00c7fc2 100644 --- a/pywikibot/tools/__init__.py +++ b/pywikibot/tools/__init__.py @@ -1167,7 +1167,7 @@ depth = get_wrapper_depth(wrapper) + 1 args, varargs, kwargs, _ = inspect.getargspec(wrapper.__wrapped__) if varargs is not None and kwargs is not None: - raise ValueError(u'{1} may not have * or ** args.'.format( + raise ValueError('{0} may not have * or ** args.'.format( name)) deprecated = set(__kw) & set(arg_names) if len(__args) > len(args):