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-b...@lists.wikimedia.org
          Reporter: mpaa.w...@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])

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to