mirror of
https://github.com/varun-r-mallya/Python-BPF.git
synced 2025-12-31 21:06:25 +00:00
Fix errorstring in _handle_unary_op
This commit is contained in:
@ -177,7 +177,7 @@ def _handle_unary_op(
|
|||||||
):
|
):
|
||||||
"""Handle ast.UnaryOp expressions."""
|
"""Handle ast.UnaryOp expressions."""
|
||||||
if not isinstance(expr.op, ast.Not) and not isinstance(expr.op, ast.USub):
|
if not isinstance(expr.op, ast.Not) and not isinstance(expr.op, ast.USub):
|
||||||
logger.error("Only 'not' unary operator is supported")
|
logger.error("Only 'not' and '-' unary operators are supported")
|
||||||
return None
|
return None
|
||||||
|
|
||||||
operand = eval_expr(
|
operand = eval_expr(
|
||||||
|
|||||||
Reference in New Issue
Block a user