Skip to content

Commit d2ff530

Browse files
committed
Add support for is and is not keywords
1 parent ecac24c commit d2ff530

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pythonbpf/expr_pass.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,8 @@ def _handle_comparator(func, builder, op, lhs, rhs):
228228
ast.LtE: "<=",
229229
ast.Gt: ">",
230230
ast.GtE: ">=",
231+
ast.Is: "==",
232+
ast.IsNot: "!=",
231233
}
232234

233235
if type(op) not in comparison_ops:

0 commit comments

Comments
 (0)