jenkins-bot merged this change.
[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(-)
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()
To view, visit change 462483. To unsubscribe, or for help writing mail filters, visit settings.