mirror of
https://github.com/varun-r-mallya/Python-BPF.git
synced 2025-12-31 21:06:25 +00:00
Add support for is and is not keywords
This commit is contained in:
@ -228,6 +228,8 @@ def _handle_comparator(func, builder, op, lhs, rhs):
|
|||||||
ast.LtE: "<=",
|
ast.LtE: "<=",
|
||||||
ast.Gt: ">",
|
ast.Gt: ">",
|
||||||
ast.GtE: ">=",
|
ast.GtE: ">=",
|
||||||
|
ast.Is: "==",
|
||||||
|
ast.IsNot: "!=",
|
||||||
}
|
}
|
||||||
|
|
||||||
if type(op) not in comparison_ops:
|
if type(op) not in comparison_ops:
|
||||||
|
|||||||
Reference in New Issue
Block a user