jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/342309 )
Change subject: [IMPROV] Don't use carriage returns ......................................................................
[IMPROV] Don't use carriage returns
Change-Id: I1b7013b8996a49bd8dc0348bcaed0ac2e22cce0c --- M scripts/maintenance/wikimedia_sites.py 1 file changed, 5 insertions(+), 5 deletions(-)
Approvals: Mpaa: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/maintenance/wikimedia_sites.py b/scripts/maintenance/wikimedia_sites.py index cca9164..7a6ea23 100755 --- a/scripts/maintenance/wikimedia_sites.py +++ b/scripts/maintenance/wikimedia_sites.py @@ -2,8 +2,8 @@ # -*- coding: utf-8 -*- """Script that updates the language lists in Wikimedia family files.""" # -# (C) xqt, 2009-2016 -# (C) Pywikibot team, 2008-2016 +# (C) xqt, 2009-2017 +# (C) Pywikibot team, 2008-2017 # # Distributed under the terms of the MIT license. # @@ -71,16 +71,16 @@ pywikibot.output(u'The lists match!') else: pywikibot.output(u"The lists don't match, the new list is:") - text = u' self.languages_by_size = [\r\n' + text = ' self.languages_by_size = [\n' line = ' ' * 11 for code in new: if len(line) + len(code) <= 76: line += u" '%s'," % code else: - text += u'%s\r\n' % line + text += '%s\n' % line line = ' ' * 11 line += u" '%s'," % code - text += u'%s\r\n' % line + text += '%s\n' % line text += u' ]' pywikibot.output(text) family_file_name = 'pywikibot/families/%s_family.py' % family
pywikibot-commits@lists.wikimedia.org