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

Change subject: Replaced catlib.Category with pywikibot.Category.
......................................................................


Replaced catlib.Category with pywikibot.Category.

Change-Id: Ib8ed2ecbcef0b7dcdaf08e9fc4b55ad817d6e280
---
M scripts/commons_link.py
1 file changed, 4 insertions(+), 5 deletions(-)

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



diff --git a/scripts/commons_link.py b/scripts/commons_link.py
index b318042..5b7f883 100644
--- a/scripts/commons_link.py
+++ b/scripts/commons_link.py
@@ -41,7 +41,6 @@
 import re
 import pywikibot
 from pywikibot import pagegenerators, i18n
-from pywikibot import catlib
 
 
 class CommonsLinkBot:
@@ -108,8 +107,8 @@
             try:
                 pywikibot.output(u'\n>>>> %s <<<<' % page.title())
                 commons = pywikibot.getSite().image_repository()
-                commonsCategory = catlib.Category(commons,
-                                                  'Category:%s' % page.title())
+                commonsCategory = pywikibot.Category(commons,
+                                                     'Category:%s' % 
page.title())
                 try:
                     getcommonscat = commonsCategory.get(get_redirect=True)
                     commonsCategoryTitle = commonsCategory.title()
@@ -178,8 +177,8 @@
                     namespace=start.namespace(),
                     includeredirects=False)
             elif arg.startswith('-cat:'):
-                cat = catlib.Category(pywikibot.getSite(),
-                                      'Category:%s' % arg[5:])
+                cat = pywikibot.Category(pywikibot.getSite(),
+                                         'Category:%s' % arg[5:])
                 gen = pagegenerators.CategorizedPageGenerator(cat)
             elif arg.startswith('-ref:'):
                 ref = pywikibot.Page(pywikibot.getSite(), arg[5:])

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ib8ed2ecbcef0b7dcdaf08e9fc4b55ad817d6e280
Gerrit-PatchSet: 3
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Pyfisch <[email protected]>
Gerrit-Reviewer: Ladsgroup <[email protected]>
Gerrit-Reviewer: Merlijn van Deen <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to