jenkins-bot has submitted this change and it was merged.
Change subject: remove unused local variable 'old_text' ......................................................................
remove unused local variable 'old_text'
Change-Id: Ie06abada378ebfbdd869106e6aede71f63dee564 --- M maintenance/wikimedia_sites.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: Ladsgroup: Looks good to me, approved jenkins-bot: Verified
diff --git a/maintenance/wikimedia_sites.py b/maintenance/wikimedia_sites.py index 439108f..8d11ded 100644 --- a/maintenance/wikimedia_sites.py +++ b/maintenance/wikimedia_sites.py @@ -91,7 +91,7 @@ pywikibot.output(text) family_file_name = '../families/%s_family.py' % family family_file = codecs.open(family_file_name, 'r', 'utf8') - old_text = family_text = family_file.read() + family_text = family_file.read() old = re.findall(ur'(?msu)^ {8}self.languages_by_size.+?]', family_text)[0] family_text = family_text.replace(old, text)
pywikibot-commits@lists.wikimedia.org