jenkins-bot has submitted this change and it was merged.
Change subject: [i18n] Don't check whether a summary message exists
......................................................................
[i18n] Don't check whether a summary message exists
The edit summary is i18n and not a L10N. There is no reason to check
whether a message exists for a given language code because the there
is a fallback to at least en language.
Change-Id: I00901866a3da5b1132e13f1e050a1175eb56e3aa
---
M scripts/redirect.py
1 file changed, 2 insertions(+), 4 deletions(-)
Approvals:
John Vandenberg: Looks good to me, approved
jenkins-bot: Verified
diff --git a/scripts/redirect.py b/scripts/redirect.py
index 2fa2c83..b800647 100755
--- a/scripts/redirect.py
+++ b/scripts/redirect.py
@@ -489,10 +489,8 @@
assert targetPage.site == self.site, (
u'target page is on different site %s'
% targetPage.site)
- if (self.has_valid_template(
- 'redirect-broken-redirect-template') and
- i18n.twhas_key(targetPage.site,
- 'redirect-remove-broken')):
+ if self.has_valid_template(
+ 'redirect-broken-redirect-template'):
pywikibot.output(u"No sysop in user-config.py, "
u"put page to speedy deletion.")
content = redir_page.get(get_redirect=True)
--
To view, visit https://gerrit.wikimedia.org/r/186636
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I00901866a3da5b1132e13f1e050a1175eb56e3aa
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Ricordisamoa <ricordisamoa(a)openmailbox.org>
Gerrit-Reviewer: Russell Blau <russblau(a)imapmail.org>
Gerrit-Reviewer: jenkins-bot <>
jenkins-bot has submitted this change and it was merged.
Change subject: Fix IsNotRedirectPage exception in Page.getCategoryRedirectTarget()
......................................................................
Fix IsNotRedirectPage exception in Page.getCategoryRedirectTarget()
The page and not the title shall be passed to the exception.
Bug: T87505
Change-Id: If25e3ab177a2aa892410412c15e6963f5999b414
---
M pywikibot/page.py
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Russell Blau: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/page.py b/pywikibot/page.py
index a10291f..e311e56 100644
--- a/pywikibot/page.py
+++ b/pywikibot/page.py
@@ -676,7 +676,7 @@
"""
if self.isCategoryRedirect():
return Category(Link(self._catredirect, self.site))
- raise pywikibot.IsNotRedirectPage(self.title())
+ raise pywikibot.IsNotRedirectPage(self)
def isEmpty(self):
"""Return True if the page text has less than 4 characters.
--
To view, visit https://gerrit.wikimedia.org/r/186612
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: If25e3ab177a2aa892410412c15e6963f5999b414
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Mpaa <mpaa.wiki(a)gmail.com>
Gerrit-Reviewer: Russell Blau <russblau(a)imapmail.org>
Gerrit-Reviewer: jenkins-bot <>