Xqt has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/375820 )
Change subject: [IMPR] Remove trivial "if True:" clause ...................................................................... [IMPR] Remove trivial "if True:" clause Change-Id: I7a773c34124fe57926a18ae7d3556d1052383db7 --- M pywikibot/titletranslate.py 1 file changed, 13 insertions(+), 15 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core refs/changes/20/375820/1 diff --git a/pywikibot/titletranslate.py b/pywikibot/titletranslate.py index 64d617b..16bbb5e 100644 --- a/pywikibot/titletranslate.py +++ b/pywikibot/titletranslate.py @@ -92,19 +92,17 @@ sitelang = page.site.code dictName, value = date.getAutoFormat(sitelang, page.title()) if dictName: - if True: - pywikibot.output( - u'TitleTranslate: %s was recognized as %s with value %d' - % (page.title(), dictName, value)) - for entryLang, entry in date.formats[dictName].items(): - if entryLang not in site.languages(): - continue - if entryLang != sitelang: - if True: - newname = entry(value) - x = pywikibot.Link( - newname, - pywikibot.Site(code=entryLang, - fam=site.family)) - result.add(x) + pywikibot.output( + u'TitleTranslate: %s was recognized as %s with value %d' + % (page.title(), dictName, value)) + for entryLang, entry in date.formats[dictName].items(): + if entryLang not in site.languages(): + continue + if entryLang != sitelang: + newname = entry(value) + x = pywikibot.Link( + newname, + pywikibot.Site(code=entryLang, + fam=site.family)) + result.add(x) return list(result) -- To view, visit https://gerrit.wikimedia.org/r/375820 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I7a773c34124fe57926a18ae7d3556d1052383db7 Gerrit-PatchSet: 1 Gerrit-Project: pywikibot/core Gerrit-Branch: master Gerrit-Owner: Xqt <i...@gno.de> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits