jenkins-bot submitted this change.

View Change

Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
[IMPR] Make GoogleSearchPageGenerator.queryGoogle a staticmethod

Change-Id: I15889ced77f856942e2d0bf5093c2fde2ae596de
---
M pywikibot/pagegenerators/_generators.py
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/pywikibot/pagegenerators/_generators.py b/pywikibot/pagegenerators/_generators.py
index f45ba45..d8bd16e 100644
--- a/pywikibot/pagegenerators/_generators.py
+++ b/pywikibot/pagegenerators/_generators.py
@@ -808,9 +808,9 @@
self.site = site
self._google_query = None

- def queryGoogle(self, query: str) -> Iterator[Any]:
- """
- Perform a query using python package 'google'.
+ @staticmethod
+ def queryGoogle(query: str) -> Iterator[Any]:
+ """Perform a query using python package 'google'.

The terms of service as at June 2014 give two conditions that
may apply to use of search:

To view, visit change 816302. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I15889ced77f856942e2d0bf5093c2fde2ae596de
Gerrit-Change-Number: 816302
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged