jenkins-bot has submitted this change and it was merged.
Change subject: Port getFirstUploader to core. For compatibility with compat only. ......................................................................
Port getFirstUploader to core. For compatibility with compat only.
Change-Id: Iaa9848d7020f994e090fbae3356a1a661239e904 --- M pywikibot/page.py 1 file changed, 9 insertions(+), 0 deletions(-)
Approvals: John Vandenberg: Looks good to me, approved XZise: Looks good to me, but someone else must approve jenkins-bot: Verified
diff --git a/pywikibot/page.py b/pywikibot/page.py index 1c318df..3e0dfb7 100644 --- a/pywikibot/page.py +++ b/pywikibot/page.py @@ -2095,6 +2095,15 @@ """Return the file's SHA1 checksum.""" return self.latest_file_info.sha1
+ @deprecated("FilePage.oldest_file_info.user") + def getFirstUploader(self): + """Return a list with first uploader of the FilePage and timestamp. + + For compatibility with compat only. + + """ + return [self.oldest_file_info.user, self.oldest_file_info.timestamp] + @deprecated("FilePage.latest_file_info.user") def getLatestUploader(self): """Return a list with latest uploader of the FilePage and timestamp.
pywikibot-commits@lists.wikimedia.org