jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/507978 )
Change subject: [PEP8] Explicit return a value for functions due to PEP8 ......................................................................
[PEP8] Explicit return a value for functions due to PEP8
Change-Id: Icca789ecb98aa7fbe975dae06d5118db2803381e --- M pywikibot/i18n.py 1 file changed, 2 insertions(+), 2 deletions(-)
Approvals: Dvorapa: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/i18n.py b/pywikibot/i18n.py index 092395a..a82e913 100644 --- a/pywikibot/i18n.py +++ b/pywikibot/i18n.py @@ -620,11 +620,11 @@ # was True before 65518573d2b0, it did just that. When False it # did just return None. It's now also returning None in the new # iterable mode. - return + return None code = list(xdict.keys())[0] trans = xdict[code] if trans is None: - return # return None if we have no translation found + return None # return None if we have no translation found if parameters is None: return trans
pywikibot-commits@lists.wikimedia.org