jenkins-bot has submitted this change and it was merged.

Change subject: [FIX] Page: Revert ae69d8dc in isCategoryRedirect
......................................................................


[FIX] Page: Revert ae69d8dc in isCategoryRedirect

In ae69d8dc isCategoryRedirect has been accidentally changed and broken.
Nothing in that method needs to be changed due to ae69d8dc.

Change-Id: I489f24ad848188c4ddc3f7073f82c4e66fc1d3ad
---
M pywikibot/page.py
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Legoktm: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/pywikibot/page.py b/pywikibot/page.py
index 95c53e1..86290c7 100644
--- a/pywikibot/page.py
+++ b/pywikibot/page.py
@@ -669,7 +669,7 @@
                     # Get target (first template argument)
                     try:
                         p = pywikibot.Page(self.site, args[0].strip(), ns=14)
-                        if p.namespace == 14:
+                        if p.namespace() == 14:
                             self._catredirect = p.title()
                         else:
                             pywikibot.warning(

-- 
To view, visit https://gerrit.wikimedia.org/r/214496
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I489f24ad848188c4ddc3f7073f82c4e66fc1d3ad
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: Legoktm <legoktm.wikipe...@gmail.com>
Gerrit-Reviewer: Merlijn van Deen <valhall...@arctus.nl>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to