jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/462556 )
Change subject: [cleanup] cleanup scripts/imagecopy.py ......................................................................
[cleanup] cleanup scripts/imagecopy.py
- use str.format(...) instead of modulo for type specifier arguments
Change-Id: I22182e72d36b89758a2c424bec99ea3c27446215 --- M scripts/imagecopy.py 1 file changed, 2 insertions(+), 1 deletion(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/imagecopy.py b/scripts/imagecopy.py index 96d922b..21f78ec 100644 --- a/scripts/imagecopy.py +++ b/scripts/imagecopy.py @@ -412,7 +412,8 @@ # uploader.decode('utf-8') scrollbar = Tkinter.Scrollbar(self.root, orient=Tkinter.VERTICAL) label = Tkinter.Label(self.root, text='Enter new name or leave blank.') - imageinfo = Tkinter.Label(self.root, text='Uploaded by %s.' % uploader) + imageinfo = Tkinter.Label(self.root, text='Uploaded by {}.'.format( + uploader)) textarea = Tkinter.Text(self.root) textarea.insert(Tkinter.END, content.encode('utf-8')) textarea.config(state=Tkinter.DISABLED,
pywikibot-commits@lists.wikimedia.org