# HG changeset patch # User Andrey Skvortsov # Date 1506608673 -10800 # Node ID 7533061a6d82fd79211460c7b066e1d67f45e25e # Parent cd42b426028b5ffc53e395d997b684a753360259 fix more than one statement on a single line diff -r cd42b426028b -r 7533061a6d82 targets/typemapping.py --- 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 = { diff -r cd42b426028b -r 7533061a6d82 tests/tools/check_source.sh --- 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