jenkins-bot merged this change.
[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.