Skip to content

Commit

Permalink
fix python
Browse files Browse the repository at this point in the history
  • Loading branch information
imbillow committed Jun 10, 2024
1 parent 9e98e93 commit b5f727e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
2 changes: 1 addition & 1 deletion bindings/const_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def write_enum_extra_options(outfile, templ, enum, enum_values):
outfile.write((templ["line_format"] % (name, value)).encode("utf-8"))


def is_with_prefix(x: str, prefix: str | List[str], target: str):
def is_with_prefix(x, prefix, target):
if target in excluded_prefixes and any(
x.startswith(excl_pre) for excl_pre in excluded_prefixes[target]
):
Expand Down
11 changes: 1 addition & 10 deletions bindings/python/capstone/xtensa_const.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,4 @@
from . import (
CS_OP_INVALID,
CS_OP_REG,
CS_OP_IMM,
CS_OP_FP,
CS_OP_PRED,
CS_OP_SPECIAL,
CS_OP_MEM,
)

from . import CS_OP_INVALID, CS_OP_REG, CS_OP_IMM, CS_OP_FP, CS_OP_PRED, CS_OP_SPECIAL, CS_OP_MEM
# For Capstone Engine. AUTO-GENERATED FILE, DO NOT EDIT [xtensa_const.py]

Xtensa_REG_INVALID = 0
Expand Down

0 comments on commit b5f727e

Please sign in to comment.