jenkins-bot has submitted this change and it was merged.
Change subject: ReplaceRobot: pass the 'site' argument to textlib.getCategoryLinks()
......................................................................
ReplaceRobot: pass the 'site' argument to textlib.getCategoryLinks()
Change-Id: I4aa073a5bb759d35b960173bfaa1af98dd9c4f3f
---
M scripts/replace.py
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
John Vandenberg: Looks good to me, approved
jenkins-bot: Verified
diff --git a/scripts/replace.py b/scripts/replace.py
index b3f6470..cf131da 100755
--- a/scripts/replace.py
+++ b/scripts/replace.py
@@ -605,7 +605,7 @@
if hasattr(self, 'addedCat'):
# Fetch only categories in wikitext, otherwise the others will
# be explicitly added.
- cats = textlib.getCategoryLinks(new_text)
+ cats = textlib.getCategoryLinks(new_text, site=page.site)
if self.addedCat not in cats:
cats.append(self.addedCat)
new_text = textlib.replaceCategoryLinks(new_text,
--
To view, visit https://gerrit.wikimedia.org/r/214920
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I4aa073a5bb759d35b960173bfaa1af98dd9c4f3f
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Ricordisamoa <ricordisamoa(a)openmailbox.org>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: Merlijn van Deen <valhallasw(a)arctus.nl>
Gerrit-Reviewer: jenkins-bot <>
jenkins-bot has submitted this change and it was merged.
Change subject: Fix some docstrings
......................................................................
Fix some docstrings
Change-Id: I2f39c0bb6286e25d07a935d1cf35c6b14b08085a
---
M pywikibot/bot.py
M scripts/protect.py
2 files changed, 3 insertions(+), 4 deletions(-)
Approvals:
XZise: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/bot.py b/pywikibot/bot.py
index b319e3c..b6a5f7b 100644
--- a/pywikibot/bot.py
+++ b/pywikibot/bot.py
@@ -548,7 +548,6 @@
@param force: Automatically use the default
@type force: bool
@rtype: unicode
- @rtype: unicode
"""
# make sure logging system has been initialized
if not _handlers_initialized:
diff --git a/scripts/protect.py b/scripts/protect.py
index ad8a147..d82367c 100755
--- a/scripts/protect.py
+++ b/scripts/protect.py
@@ -108,10 +108,10 @@
def check_protection_level(operation, level, levels, default=None):
- """Check if the protection level is valid or asks if necessary.
+ """Check if the protection level is valid or ask if necessary.
- @return a valid protection level
- @rtype string
+ @return: a valid protection level
+ @rtype: string
"""
if level not in levels:
first_char = []
--
To view, visit https://gerrit.wikimedia.org/r/214914
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I2f39c0bb6286e25d07a935d1cf35c6b14b08085a
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Ricordisamoa <ricordisamoa(a)openmailbox.org>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: Merlijn van Deen <valhallasw(a)arctus.nl>
Gerrit-Reviewer: XZise <CommodoreFabianus(a)gmx.de>
Gerrit-Reviewer: jenkins-bot <>
Build Update for wikimedia/pywikibot-core
-------------------------------------
Build: #2305
Status: Passed
Duration: 21 minutes and 32 seconds
Commit: e6d06a3 (master)
Author: Fabian Neundorf
Message: [FIX] tests: Support Python 3 in metaclass tests
Some tests (date, l10n and logentry) were just using __metaclass__ which is not
supported by Python 3. The metaclasses in aspects and script_tests were using
six on Python 3 to avoid that. This adds a generic decorator to tests.utils
which looks for __metaclass__ in the class itself and then uses six's
add_metaclass (like in aspects and script_tests) to add this metaclass.
Change-Id: I8cb46bffb39ef4640ec523e596fba5fbf48fbd8d
View the changeset: https://github.com/wikimedia/pywikibot-core/compare/be8aac54d68f...e6d06a37…
View the full build log and details: https://travis-ci.org/wikimedia/pywikibot-core/builds/64787221
--
You can configure recipients for build notifications in your .travis.yml file. See http://docs.travis-ci.com/user/notifications