jenkins-bot merged this change.
[cleanup] cleanup scripts/misspelling.py
- remove preleading "u" from strings
- use single quotes for string literals
Change-Id: I51a0db45c763c54d754a262469c3388df41a3852
---
M scripts/misspelling.py
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/scripts/misspelling.py b/scripts/misspelling.py
index 1add235..8a7f06c 100755
--- a/scripts/misspelling.py
+++ b/scripts/misspelling.py
@@ -66,9 +66,9 @@
'da': 'Omdirigeringer af fejlstavninger',
'de': ('Kategorie:Wikipedia:Falschschreibung',
'Kategorie:Wikipedia:Obsolete Schreibung'),
- 'en': u'Redirects from misspellings',
- 'hu': u'Átirányítások hibás névről',
- 'nl': u'Categorie:Wikipedia:Redirect voor spelfout',
+ 'en': 'Redirects from misspellings',
+ 'hu': 'Átirányítások hibás névről',
+ 'nl': 'Categorie:Wikipedia:Redirect voor spelfout',
}
def __init__(self, always, firstPageTitle, main_only):
@@ -104,8 +104,8 @@
for misspellingTemplateName in templates)
if firstPageTitle:
pywikibot.output(
- u'-start parameter unsupported on this wiki because there '
- u'is no category for misspellings.')
+ '-start parameter unsupported on this wiki because there '
+ 'is no category for misspellings.')
else:
pywikibot.output(HELP_MSG.format(site=self.site))
@@ -188,5 +188,5 @@
bot.run()
-if __name__ == "__main__":
+if __name__ == '__main__':
main()
To view, visit change 462481. To unsubscribe, or for help writing mail filters, visit settings.