Skip to content

Commit

Permalink
Correct grammar option; bump spark_parser allowed
Browse files Browse the repository at this point in the history
  • Loading branch information
rocky committed Nov 16, 2024
1 parent 3632bdd commit e03d9db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion __pkginfo__.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
]
}
ftp_url = None
install_requires = ["click", "spark-parser >= 1.8.9, < 1.9.1", "xdis >= 6.1.1,<6.2.0"]
install_requires = ["click", "spark-parser >= 1.8.9, < 1.9.2", "xdis >= 6.1.1, < 6.2.0"]

license = "GPL3"
mailing_list = "[email protected]"
Expand Down
6 changes: 1 addition & 5 deletions decompyle3/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def decompile(
showasm: Optional[str] = None,
showast={},
timestamp=None,
showgrammar=False,
grammar=dict(PARSER_DEFAULT_DEBUG),
source_encoding=None,
code_objects={},
source_size=None,
Expand Down Expand Up @@ -123,10 +123,6 @@ def write(s):
if source_size:
write("# Size of source mod 2**32: %d bytes" % source_size)

grammar = dict(PARSER_DEFAULT_DEBUG)
if showgrammar:
grammar["reduce"] = True

debug_opts = {"asm": showasm, "tree": showast, "grammar": grammar}

try:
Expand Down

0 comments on commit e03d9db

Please sign in to comment.