Build Update for wikimedia/pywikibot-core
-------------------------------------
Build: #4081
Status: Fixed
Duration: 2 hours, 17 minutes, and 51 seconds
Commit: 3834b6c (master)
Author: lokal-profil
Message: Clean up issue with _WbDataPage
The first merged patch (https://gerrit.wikimedia.org/r/351714)
was broken and a quick fix (https://gerrit.wikimedia.org/r/355812)
was introduced to stop the tests from crashing.
This patch cleans up the issue in the original patch.
I removed the None default for site since the site value should
always be passed to this function and since the function has not
been in production long enough to warrent allowing it to not have
the site passed simply for backwards compatibility.
Bug: T166362
Change-Id: If2790daeb2c11ff8622f95a8c4cec3a9700d667c
View the changeset: https://github.com/wikimedia/pywikibot-core/compare/f99ce89074dd...3834b6c9…
View the full build log and details: https://travis-ci.org/wikimedia/pywikibot-core/builds/236961159?utm_source=…
--
You can configure recipients for build notifications in your .travis.yml file. See https://docs.travis-ci.com/user/notifications
jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/355908 )
Change subject: Clean up issue with _WbDataPage
......................................................................
Clean up issue with _WbDataPage
The first merged patch (https://gerrit.wikimedia.org/r/351714)
was broken and a quick fix (https://gerrit.wikimedia.org/r/355812)
was introduced to stop the tests from crashing.
This patch cleans up the issue in the original patch.
I removed the None default for site since the site value should
always be passed to this function and since the function has not
been in production long enough to warrent allowing it to not have
the site passed simply for backwards compatibility.
Bug: T166362
Change-Id: If2790daeb2c11ff8622f95a8c4cec3a9700d667c
---
M pywikibot/__init__.py
1 file changed, 2 insertions(+), 3 deletions(-)
Approvals:
Merlijn van Deen: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/__init__.py b/pywikibot/__init__.py
index 42ac0dd..4856a66 100644
--- a/pywikibot/__init__.py
+++ b/pywikibot/__init__.py
@@ -994,7 +994,7 @@
return self.page.title()
@classmethod
- def fromWikibase(cls, page_name, site=None, data_site=None):
+ def fromWikibase(cls, page_name, site):
"""
Create a _WbDataPage from the JSON data given by the Wikibase API.
@@ -1004,8 +1004,7 @@
@type site: pywikibot.site.DataSite
@rtype: pywikibot._WbDataPage
"""
- site = site or Site().data_repository()
- data_site = data_site or cls._get_data_site(site)
+ data_site = cls._get_data_site(site)
page = Page(data_site, page_name)
return cls(page, site)
--
To view, visit https://gerrit.wikimedia.org/r/355908
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: If2790daeb2c11ff8622f95a8c4cec3a9700d667c
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Lokal Profil <lokal.profil(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. ( https://gerrit.wikimedia.org/r/355873 )
Change subject: Unhide followlive from README.rst
......................................................................
Unhide followlive from README.rst
followlive was merged.
Change-Id: I9863f9445fc8d4252f3a490bb99d9e77532ef14e
---
M scripts/README.rst
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Mpaa: Looks good to me, approved
jenkins-bot: Verified
diff --git a/scripts/README.rst b/scripts/README.rst
index 86f0bde..1d55830 100644
--- a/scripts/README.rst
+++ b/scripts/README.rst
@@ -95,7 +95,7 @@
+------------------------+---------------------------------------------------------+
| flickrripper.py | Upload images from Flickr easily. |
+------------------------+---------------------------------------------------------+
- | #followlive.py | follow new articles on a wikipedia and flag them |
+ | followlive.py | follow new articles on a wikipedia and flag them |
| | with a template. |
+------------------------++--------------------------------------------------------+
| freebasemappingupload.py| Docstring fixes in scripts |
--
To view, visit https://gerrit.wikimedia.org/r/355873
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I9863f9445fc8d4252f3a490bb99d9e77532ef14e
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Magul <tomasz.magulski(a)gmail.com>
Gerrit-Reviewer: Mpaa <mpaa.wiki(a)gmail.com>
Gerrit-Reviewer: jenkins-bot <>