From 51141ad06d367572aac6034fa782aaa1d9f0ac84 Mon Sep 17 00:00:00 2001 From: rocky Date: Mon, 3 Jun 2024 07:55:44 -0400 Subject: [PATCH] Use set literals --- uncompyle6/parsers/parse3.py | 2 +- uncompyle6/parsers/parse37base.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/uncompyle6/parsers/parse3.py b/uncompyle6/parsers/parse3.py index 0dd66724..65d66937 100644 --- a/uncompyle6/parsers/parse3.py +++ b/uncompyle6/parsers/parse3.py @@ -706,7 +706,7 @@ class Python3Parser(PythonParser): # 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. diff --git a/uncompyle6/parsers/parse37base.py b/uncompyle6/parsers/parse37base.py index c10ce8fd..b89560f7 100644 --- a/uncompyle6/parsers/parse37base.py +++ b/uncompyle6/parsers/parse37base.py @@ -138,7 +138,7 @@ class Python37BaseParser(PythonParser): # 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.