jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/470550 )
Change subject: [deprecated] Use latest_file_info.user instead of getLatestUploader()[0] ......................................................................
[deprecated] Use latest_file_info.user instead of getLatestUploader()[0]
getLatestUploader() method is deprecated for 4 years. Use latest_file_info.user instead.
Bug: T208292 Change-Id: I1d3eaea4c11b4e4a0b2ef200ca2d4f69fd2ab389 --- M scripts/imagecopy.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: Framawiki: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/imagecopy.py b/scripts/imagecopy.py index 4e8f70f..1b4f7f0 100644 --- a/scripts/imagecopy.py +++ b/scripts/imagecopy.py @@ -533,7 +533,7 @@ else: # The first upload is last in the list. try: - username = imagepage.getLatestUploader()[0] + username = imagepage.latest_file_info.user except NotImplementedError: # No API, using the page file instead (datetime, username, resolution, size,
pywikibot-commits@lists.wikimedia.org