jenkins-bot merged this change.

View Change

Approvals: Dvorapa: Looks good to me, approved jenkins-bot: Verified
[PEP8] Explicit return a value for functions due to PEP8

Change-Id: Icca789ecb98aa7fbe975dae06d5118db2803381e
---
M pywikibot/i18n.py
1 file changed, 2 insertions(+), 2 deletions(-)

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


To view, visit change 507978. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Icca789ecb98aa7fbe975dae06d5118db2803381e
Gerrit-Change-Number: 507978
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: Dvorapa <dvorapa@seznam.cz>
Gerrit-Reviewer: John Vandenberg <jayvdb@gmail.com>
Gerrit-Reviewer: Siebrand <siebrand@kitano.nl>
Gerrit-Reviewer: jenkins-bot (75)