jenkins-bot has submitted this change and it was merged. Change subject: [FIX] Indexes in str.format ......................................................................
[FIX] Indexes in str.format These two files were using indexes either wrong or with the wrong index. Change-Id: Icb17bdfc91e923f62120c1584daef683b49cef68 --- M pywikibot/tools/__init__.py M scripts/redirect.py 2 files changed, 3 insertions(+), 3 deletions(-) Approvals: John Vandenberg: Looks good to me, approved jenkins-bot: Verified diff --git a/pywikibot/tools/__init__.py b/pywikibot/tools/__init__.py index b018fe0..d63efd2 100644 --- a/pywikibot/tools/__init__.py +++ b/pywikibot/tools/__init__.py @@ -1332,7 +1332,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): diff --git a/scripts/redirect.py b/scripts/redirect.py index bf10f31..70ae9c7 100755 --- a/scripts/redirect.py +++ b/scripts/redirect.py @@ -507,7 +507,7 @@ pywikibot.output(u'Cannot fix or delete the broken redirect') except pywikibot.IsRedirectPage: pywikibot.output( - "Redirect target {{0}} is also a redirect! {{1}}".format( + "Redirect target {0} is also a redirect! {1}".format( targetPage.title(asLink=True), "Won't delete anything." if self.getOption('delete') else "Skipping.")) @@ -515,7 +515,7 @@ # we successfully get the target page, meaning that # it exists and is not a redirect: no reason to touch it. pywikibot.output( - "Redirect target {{0}} does exist! {{1}}".format( + "Redirect target {0} does exist! {1}".format( targetPage.title(asLink=True), "Won't delete anything." if self.getOption('delete') else "Skipping.")) -- To view, visit https://gerrit.wikimedia.org/r/237438 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Icb17bdfc91e923f62120c1584daef683b49cef68 Gerrit-PatchSet: 1 Gerrit-Project: pywikibot/core Gerrit-Branch: master Gerrit-Owner: XZise <commodorefabia...@gmx.de> Gerrit-Reviewer: John Vandenberg <jay...@gmail.com> Gerrit-Reviewer: Ladsgroup <ladsgr...@gmail.com> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits