[Tarantool-patches] [PATCH luajit 12/15] test: fix E711 errors by pycodestyle
Igor Munkin
imun at tarantool.org
Thu Aug 3 10:30:37 MSK 2023
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
--
2.30.2
More information about the Tarantool-patches
mailing list