https://bugzilla.wikimedia.org/show_bug.cgi?id=60406
Web browser: --- Bug ID: 60406 Summary: site.loadrevisions(): None is returned in no Page param is passed Product: Pywikibot Version: core (2.0) Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: mpaa.wiki@gmail.com Classification: Unclassified Mobile Platform: ---
Passing revids without Page parameter does not return anything. Since there is no use case for not passing the Page object, it should be made mandatory and docstring updated.
Try:
import pywikibot s = pywikibot.Site('nl', 'wikipedia') s.loadrevisions(revids=[39557838, 39484879])
https://bugzilla.wikimedia.org/show_bug.cgi?id=60406
Mpaa mpaa.wiki@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|site.loadrevisions(): None |site.loadrevisions(): None |is returned in no Page |is returned if no Page |param is passed |param is passed
https://bugzilla.wikimedia.org/show_bug.cgi?id=60406
--- Comment #1 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 109955 had a related patch set uploaded by Mpaa: (Bug 60406) - site.loadrevisions(): None is returned if no Page param is passed
https://gerrit.wikimedia.org/r/109955
https://bugzilla.wikimedia.org/show_bug.cgi?id=60406
Gerrit Notification Bot gerritadmin@wikimedia.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |PATCH_TO_REVIEW
https://bugzilla.wikimedia.org/show_bug.cgi?id=60406
--- Comment #2 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 109955 merged by jenkins-bot: (Bug 60406) - site.loadrevisions(): None is returned if no Page param is passed
https://gerrit.wikimedia.org/r/109955
https://bugzilla.wikimedia.org/show_bug.cgi?id=60406
xqt info@gno.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|PATCH_TO_REVIEW |RESOLVED CC| |info@gno.de Resolution|--- |FIXED
pywikipedia-bugs@lists.wikimedia.org