jenkins-bot has submitted this change and it was merged.
Change subject: [FIX] doc: Fix syntax issues
......................................................................
[FIX] doc: Fix syntax issues
Instead of using two single quotes like in wikitext it's using the reST's
syntax to write bold text using asterisks. Also separate lists by one newline
from text.
Change-Id: If2c86ba1ecce69b795646eb56d7104998f0dfeaa
---
M pywikibot/bot.py
M pywikibot/family.py
M pywikibot/page.py
3 files changed, 7 insertions(+), 3 deletions(-)
Approvals:
John Vandenberg: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/bot.py b/pywikibot/bot.py
index 99a0d0f..104a45a 100644
--- a/pywikibot/bot.py
+++ b/pywikibot/bot.py
@@ -280,9 +280,10 @@
user interfaces (GUIs) without modifying the core bot code.
The following output levels are defined:
+
- DEBUG: only for file logging; debugging messages.
- STDOUT: output that must be sent to sys.stdout (for bots that may
- have their output redirected to a file or other destination).
+ have their output redirected to a file or other destination).
- VERBOSE: optional progress information for display to user.
- INFO: normal (non-optional) progress information for display to user.
- INPUT: prompts requiring user response.
@@ -290,7 +291,7 @@
- ERROR: user error messages.
- CRITICAL: fatal error messages.
- Accordingly, do ''not'' use print statements in bot code; instead,
+ Accordingly, do **not** use print statements in bot code; instead,
use pywikibot.output function.
@param strm: Output stream. If None, re-uses the last stream if one
@@ -1498,9 +1499,11 @@
and puts the page if needed.
Option used:
+
* 'always'
Keyword args used:
+
* 'async' - passed to page.save
* 'summary' - passed to page.save
* 'show_diff' - show changes between oldtext and newtext (enabled)
diff --git a/pywikibot/family.py b/pywikibot/family.py
index 642698b..148a539 100644
--- a/pywikibot/family.py
+++ b/pywikibot/family.py
@@ -952,7 +952,7 @@
Returns a string, not a compiled regular expression object.
- This reads from the family file, and ''not'' from
+ This reads from the family file, and **not** from
[[MediaWiki:Linktrail]], because the MW software currently uses a
built-in linktrail from its message files and ignores the wiki
value.
diff --git a/pywikibot/page.py b/pywikibot/page.py
index 180ad39..081c252 100644
--- a/pywikibot/page.py
+++ b/pywikibot/page.py
@@ -4386,6 +4386,7 @@
Check whether the Claim's target is equal to specified value.
The function checks for:
+
- ItemPage ID equality
- WbTime year equality
- Coordinate equality, regarding precision
--
To view, visit https://gerrit.wikimedia.org/r/238708
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: If2c86ba1ecce69b795646eb56d7104998f0dfeaa
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: XZise <CommodoreFabianus(a)gmx.de>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: jenkins-bot <>
Build Update for wikimedia/pywikibot-core
-------------------------------------
Build: #2852
Status: Passed
Duration: 33 minutes and 56 seconds
Commit: 9a19dcf (master)
Author: Fabian Neundorf
Message: [FIX] ModuleDeprecationWrapper: Update __dict__
On `__setattr__` calls, it did not update `__dict__` which caused it to return
the old entry from the `__dict__` instead of the entry from the module.
Change-Id: If366d01748f8743394635bfed47308389b3aec27
View the changeset: https://github.com/wikimedia/pywikibot-core/compare/d4d49bf6fec8...9a19dcf8…
View the full build log and details: https://travis-ci.org/wikimedia/pywikibot-core/builds/80550266
--
You can configure recipients for build notifications in your .travis.yml file. See http://docs.travis-ci.com/user/notifications
jenkins-bot has submitted this change and it was merged.
Change subject: [FIX] ModuleDeprecationWrapper: Update __dict__
......................................................................
[FIX] ModuleDeprecationWrapper: Update __dict__
On `__setattr__` calls, it did not update `__dict__` which caused it to return
the old entry from the `__dict__` instead of the entry from the module.
Change-Id: If366d01748f8743394635bfed47308389b3aec27
---
M pywikibot/tools/__init__.py
1 file changed, 1 insertion(+), 0 deletions(-)
Approvals:
John Vandenberg: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/tools/__init__.py b/pywikibot/tools/__init__.py
index 1abf204..fa07047 100644
--- a/pywikibot/tools/__init__.py
+++ b/pywikibot/tools/__init__.py
@@ -1507,6 +1507,7 @@
def __setattr__(self, attr, value):
"""Set the value of the wrapped module."""
+ self.__dict__[attr] = value
setattr(self._module, attr, value)
def __getattr__(self, attr):
--
To view, visit https://gerrit.wikimedia.org/r/238651
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: If366d01748f8743394635bfed47308389b3aec27
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: XZise <CommodoreFabianus(a)gmx.de>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: jenkins-bot <>
jenkins-bot has submitted this change and it was merged.
Change subject: [FIX] tests: Check the HTTPS connection
......................................................................
[FIX] tests: Check the HTTPS connection
The certificates for `wdq.wmflabs.org` and `wikistats.wmflabs.org` have expired
and although the hostname is checked before the test, it only checks the HTTP
connection which is still fine and thus it won't skip it. This changes the
tested hostnames to the actual hostnames tested.
Change-Id: I96b9af0d8428145e084249cb6f0d6c4756b94a93
---
M tests/wikidataquery_tests.py
M tests/wikistats_tests.py
2 files changed, 2 insertions(+), 10 deletions(-)
Approvals:
John Vandenberg: Looks good to me, approved
jenkins-bot: Verified
diff --git a/tests/wikidataquery_tests.py b/tests/wikidataquery_tests.py
index 81ed4f9..b5ee548 100644
--- a/tests/wikidataquery_tests.py
+++ b/tests/wikidataquery_tests.py
@@ -231,11 +231,7 @@
"""Test slow WikiDataQuery API functions."""
- sites = {
- 'wdq': {
- 'hostname': 'wdq.wmflabs.org',
- },
- }
+ hostname = 'https://wdq.wmflabs.org/api'
def testQueryApiGetter(self):
"""Test that we can actually retreive data and that caching works."""
diff --git a/tests/wikistats_tests.py b/tests/wikistats_tests.py
index 6f2dff3..f9e727f 100644
--- a/tests/wikistats_tests.py
+++ b/tests/wikistats_tests.py
@@ -24,11 +24,7 @@
"""Test WikiStats dump."""
- sites = {
- 'wikistats': {
- 'hostname': 'wikistats.wmflabs.org',
- },
- }
+ hostname = 'https://wikistats.wmflabs.org/api.php'
def test_sort(self):
"""Test sorted results."""
--
To view, visit https://gerrit.wikimedia.org/r/238457
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I96b9af0d8428145e084249cb6f0d6c4756b94a93
Gerrit-PatchSet: 2
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: XZise <CommodoreFabianus(a)gmx.de>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: XZise <CommodoreFabianus(a)gmx.de>
Gerrit-Reviewer: jenkins-bot <>
Build Update for wikimedia/pywikibot-core
-------------------------------------
Build: #2848
Status: Fixed
Duration: 30 minutes and 45 seconds
Commit: c45791f (master)
Author: Fabian Neundorf
Message: [FEAT] tests: Add decorator to check installs
Some tests require that other parts are installed and currently this was always
checked manually. This adds a decorator which defines which modules a method or
class requires and skips the test if one of the modules can't be imported.
Change-Id: Id581b427aa4b5414d94a94317d55be195f15e755
View the changeset: https://github.com/wikimedia/pywikibot-core/compare/d341b2d8bb4d...c45791f1…
View the full build log and details: https://travis-ci.org/wikimedia/pywikibot-core/builds/80527758
--
You can configure recipients for build notifications in your .travis.yml file. See http://docs.travis-ci.com/user/notifications