jenkins-bot has submitted this change and it was merged.
Change subject: page.py: fix docstring of getFileVersionHistory() ......................................................................
page.py: fix docstring of getFileVersionHistory()
getFileVersionHistory() returns a list of dicts, not tuples.
Change-Id: I783ed237d691aedb44464a6e292d60ea778183b7 --- M pywikibot/page.py 1 file changed, 3 insertions(+), 2 deletions(-)
Approvals: XZise: Looks good to me, approved Legoktm: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/page.py b/pywikibot/page.py index 5a4994c..54c3ff0 100644 --- a/pywikibot/page.py +++ b/pywikibot/page.py @@ -1915,8 +1915,9 @@ def getFileVersionHistory(self): """Return the file's version history.
- @return: An iterator yielding tuples containing (timestamp, - username, resolution, filesize, comment). + @return: A list of dictionaries with the following keys: + [comment, sha1, url, timestamp, metadata, + height, width, mime, user, descriptionurl, size]
""" return self.site.loadimageinfo(self, history=True)