--- a/targets/typemapping.py Thu Sep 28 17:20:31 2017 +0300
+++ b/targets/typemapping.py Thu Sep 28 17:24:33 2017 +0300
@@ -46,12 +46,14 @@
("ns", c_long)] # tv_nsec
-def _t(t, u=lambda x: x.value, p=lambda t, x: t(x)): return (t, u, p)
+def _t(t, u=lambda x: x.value, p=lambda t, x: t(x)):
+ return (t, u, p)
-def _ttime(): return (IEC_TIME,
- lambda x: td(0, x.s, x.ns/1000),
- lambda t, x: t(x.days * 24 * 3600 + x.seconds, x.microseconds*1000))
+def _ttime():
+ return (IEC_TIME,
+ lambda x: td(0, x.s, x.ns/1000),
+ lambda t, x: t(x.days * 24 * 3600 + x.seconds, x.microseconds*1000))
SameEndianessTypeTranslator = {
--- a/tests/tools/check_source.sh Thu Sep 28 17:20:31 2017 +0300
+++ b/tests/tools/check_source.sh Thu Sep 28 17:24:33 2017 +0300
@@ -208,6 +208,7 @@
enable=$enable,C0411 # (wrong-import-order) standard import "import x" comes before "import y"
enable=$enable,W0108 # (unnecessary-lambda) Lambda may not be necessary
enable=$enable,C0412 # (ungrouped-imports) Imports from package X are not grouped
+ enable=$enable,C0321 # (multiple-statements) More than one statement on a single line
# enable=$enable,W0403 # relative import
# enable=$enable,W0622 # (redefined-builtin) Redefining built-in