jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/462483 )
Change subject: [cleanup] cleanup scripts/match_images.py ......................................................................
[cleanup] cleanup scripts/match_images.py
- remove preleading "u" from strings - use single quotes for string literals
Change-Id: Ia1a89061fd8aca9e599bf78e6836e4e2a0c89897 --- M scripts/match_images.py 1 file changed, 7 insertions(+), 5 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/match_images.py b/scripts/match_images.py index 59b1c07..e9f6899 100755 --- a/scripts/match_images.py +++ b/scripts/match_images.py @@ -141,8 +141,8 @@ def main(*args): """Extracting file page information of images to work on and initiate matching.""" images = [] - other_family = u'' - other_lang = u'' + other_family = '' + other_lang = '' imagePageA = None imagePageB = None
@@ -152,12 +152,14 @@ for arg in local_args: if arg.startswith('-otherfamily:'): if len(arg) == len('-otherfamily:'): - other_family = pywikibot.input(u'What family do you want to use?') + other_family = pywikibot.input( + 'What family do you want to use?') else: other_family = arg[len('-otherfamily:'):] elif arg.startswith('-otherlang:'): if len(arg) == len('-otherlang:'): - other_lang = pywikibot.input(u'What language do you want to use?') + other_lang = pywikibot.input( + 'What language do you want to use?') else: other_lang = arg[len('otherlang:'):] else: @@ -187,5 +189,5 @@ match_image_pages(imagePageA, imagePageB)
-if __name__ == "__main__": +if __name__ == '__main__': main()