jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/816302 )
Change subject: [IMPR] Make GoogleSearchPageGenerator.queryGoogle a staticmethod ......................................................................
[IMPR] Make GoogleSearchPageGenerator.queryGoogle a staticmethod
Change-Id: I15889ced77f856942e2d0bf5093c2fde2ae596de --- M pywikibot/pagegenerators/_generators.py 1 file changed, 3 insertions(+), 3 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
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:
pywikibot-commits@lists.wikimedia.org