Skip to content

Commit

Permalink
Use set literals
Browse files Browse the repository at this point in the history
  • Loading branch information
rocky committed Jun 3, 2024
1 parent 4b36f94 commit c9cf035
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion decompyle3/parsers/p37/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def customize_grammar_rules37(self, tokens, customize):
# Note: BUILD_TUPLE_UNPACK_WITH_CALL gets considered by
# default because it starts with BUILD. So we'll set to ignore it from
# the start.
custom_ops_processed = set(("BUILD_TUPLE_UNPACK_WITH_CALL",))
custom_ops_processed = {"BUILD_TUPLE_UNPACK_WITH_CALL"}

# A set of instruction operation names that exist in the token stream.
# We use this customize the grammar that we create.
Expand Down
2 changes: 1 addition & 1 deletion decompyle3/parsers/p37/lambda_custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def customize_grammar_rules_lambda37(self, tokens, customize):
# Note: BUILD_TUPLE_UNPACK_WITH_CALL gets considered by
# default because it starts with BUILD. So we'll set to ignore it from
# the start.
custom_ops_processed = set(("BUILD_TUPLE_UNPACK_WITH_CALL",))
custom_ops_processed = {"BUILD_TUPLE_UNPACK_WITH_CALL"}

for i, token in enumerate(tokens):
opname = token.kind
Expand Down
2 changes: 1 addition & 1 deletion decompyle3/parsers/p38pypy/lambda_custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def customize_grammar_rules_lambda38(self, tokens, customize):
[opname[: opname.rfind("_")] for opname in self.seen_ops]
)

custom_ops_processed = set(["DICT_MERGE"])
custom_ops_processed = {"DICT_MERGE"}

# Loop over instructions adding custom grammar rules based on
# a specific instruction seen.
Expand Down

0 comments on commit c9cf035

Please sign in to comment.