jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/i18n/+/984826 )
Change subject: Localisation updates from https://translatewiki.net.
......................................................................
Localisation updates from https://translatewiki.net.
Change-Id: I06aafbfd977380a8e7a729612499c77d32a63da2
---
M delinker/sl.json
1 file changed, 10 insertions(+), 1 deletion(-)
Approvals:
L10n-bot: Looks good to me, approved
jenkins-bot: Verified
diff --git a/delinker/sl.json b/delinker/sl.json
index 6474100..5a4ed2e 100644
--- a/delinker/sl.json
+++ b/delinker/sl.json
@@ -5,5 +5,5 @@
"Upwinxp"
]
},
- "delinker-delink": "Bot: Datoteka [[%(title)s]] je bila odstranjena ali pa jo je izbrisal/a [[:User:%(user)s]]: ''%(comment)s''"
+ "delinker-delink": "Bot: Datoteka [[%(title)s]] je bila odstranjena ali pa jo je izbrisal_a [[:User:%(user)s]]: ''%(comment)s''"
}
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/i18n/+/984826
To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/i18n
Gerrit-Branch: master
Gerrit-Change-Id: I06aafbfd977380a8e7a729612499c77d32a63da2
Gerrit-Change-Number: 984826
Gerrit-PatchSet: 1
Gerrit-Owner: L10n-bot <l10n-bot(a)translatewiki.net>
Gerrit-Reviewer: L10n-bot <l10n-bot(a)translatewiki.net>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/984129 )
Change subject: [doc] update documentation
......................................................................
[doc] update documentation
Change-Id: I764ae26ef8dceca9bb62a2534e6ab772c6b3f0dd
---
M pywikibot/site/_apisite.py
M pywikibot/tools/collections.py
2 files changed, 14 insertions(+), 4 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/site/_apisite.py b/pywikibot/site/_apisite.py
index 250c427..3c46cad 100644
--- a/pywikibot/site/_apisite.py
+++ b/pywikibot/site/_apisite.py
@@ -572,11 +572,11 @@
>>> limit.delay, limit.ratio # doctest: +SKIP
(0.0, inf)
- .. seealso:: :class:`tools.collections.RateLimit` for RateLimit
- examples.
.. note:: It is not verified whether ``action`` parameter has a
valid value.
- .. seealso:: :api:`Ratelimit`
+ .. seealso::
+ - :class:`tools.collections.RateLimit` for RateLimit examples.
+ - :api:`Ratelimit`
.. versionadded:: 9.0
:param action: action which might be limited
diff --git a/pywikibot/tools/collections.py b/pywikibot/tools/collections.py
index 38e330a..cd4d9a9 100644
--- a/pywikibot/tools/collections.py
+++ b/pywikibot/tools/collections.py
@@ -305,7 +305,8 @@
<pywikibot.site._apisite.APISite.ratelimit>`.
.. note:: :meth:`delay` and :meth:`ratio` properties cannot be
- sliced or used with tuple indices. The must be used as attributes.
+ sliced or used with tuple indices. They must be used as
+ attributes.
>>> limit = RateLimit('user', 500, 10)
>>> limit
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/984129
To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I764ae26ef8dceca9bb62a2534e6ab772c6b3f0dd
Gerrit-Change-Number: 984129
Gerrit-PatchSet: 2
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/973395 )
Change subject: Pass global -nolog argument into bot script from wrapper.
......................................................................
Pass global -nolog argument into bot script from wrapper.
Scripts using handle_args function will create command log even -nolog is
given as global option to pwb wrapper script. Therefore pass -nolog option
as script option.
Bug: T328900
Change-Id: Ib8203600a2925680e979867d8603e0c3e05d8188
---
M pywikibot/scripts/wrapper.py
1 file changed, 19 insertions(+), 0 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/scripts/wrapper.py b/pywikibot/scripts/wrapper.py
index c53d6af..5b08cc8 100755
--- a/pywikibot/scripts/wrapper.py
+++ b/pywikibot/scripts/wrapper.py
@@ -433,6 +433,11 @@
"""
global filename
+ # If -nolog options are in global args, add them to
+ # script args.
+ if '-nolog' in global_args:
+ script_args.append('-nolog')
+
if global_args: # don't use sys.argv
unknown_args = pwb.handle_args(global_args)
if unknown_args: # pragma: no cover
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/973395
To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: Ib8203600a2925680e979867d8603e0c3e05d8188
Gerrit-Change-Number: 973395
Gerrit-PatchSet: 5
Gerrit-Owner: Enag2000 <enag2000(a)gmail.com>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged