jenkins-bot submitted this change.
[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.