jenkins-bot merged this change.
component: pywikibot-core
Fixed TypeError in getFileVersionHistoryTable method
Bug: T248266
Change-Id: I6f705373e1b69341410dee2a0eb23353b2e6d068
---
M pywikibot/page/__init__.py
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/pywikibot/page/__init__.py b/pywikibot/page/__init__.py
index 2f27c25..ecbeaa1 100644
--- a/pywikibot/page/__init__.py
+++ b/pywikibot/page/__init__.py
@@ -2665,11 +2665,12 @@
def getFileVersionHistoryTable(self):
"""Return the version history in the form of a wiki table."""
lines = []
- for info in self.get_file_history():
- dimension = '{width}×{height} px ({size} bytes)'.format(**info)
+ for info in self.get_file_history().values():
+ dimension = '{width}×{height} px ({size} bytes)'.format(
+ **info.__dict__)
lines.append('| {timestamp} || {user} || {dimension} |'
'| <nowiki>{comment}</nowiki>'
- ''.format(dimension=dimension, **info))
+ ''.format(dimension=dimension, **info.__dict__))
return ('{| class="wikitable"\n'
'! {{int:filehist-datetime}} || {{int:filehist-user}} |'
'| {{int:filehist-dimensions}} || {{int:filehist-comment}}\n'
To view, visit change 582588. To unsubscribe, or for help writing mail filters, visit settings.