[Tarantool-patches] [PATCH luajit 12/15] test: fix E711 errors by pycodestyle
Sergey Bronnikov
sergeyb at tarantool.org
Thu Aug 3 17:29:24 MSK 2023
LGTM
On 8/3/23 10:30, Igor Munkin wrote:
> Fixed the only occurrence of E711 ("comparison to None should be 'if
> cond is not None:'") error reported by pycodestyle[1].
>
> [1]: https://www.flake8rules.com/rules/E711.html
>
> Signed-off-by: Igor Munkin <imun at tarantool.org>
> ---
> src/luajit_lldb.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/luajit_lldb.py b/src/luajit_lldb.py
> index 1442e367..e481cfa0 100644
> --- a/src/luajit_lldb.py
> +++ b/src/luajit_lldb.py
> @@ -1087,7 +1087,7 @@ def configure(debugger):
> global LJ_64, LJ_GC64, LJ_FR2, LJ_DUALNUM, PADDING, LJ_TISNUM, target
> target = debugger.GetSelectedTarget()
> module = target.modules[0]
> - LJ_DUALNUM = module.FindSymbol('lj_lib_checknumber') != None
> + LJ_DUALNUM = module.FindSymbol('lj_lib_checknumber') is not None
>
> try:
> irtype_enum = target.FindFirstType('IRType').enum_members
More information about the Tarantool-patches
mailing list