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 <>