mirror of
https://github.com/syssec-utd/pylingual.git
synced 2026-05-10 18:39:03 -07:00
nit
This commit is contained in:
@@ -32,7 +32,8 @@ def structure_control_flow(cfg: nx.DiGraph, bytecode: EditableBytecode) -> Contr
|
||||
if not iteration(cfg, runs):
|
||||
return MetaTemplate("\x1b[31mirreducible cflow\x1b[0m", bytecode.codeobj)
|
||||
except Exception:
|
||||
pdb.xpm() # type: ignore
|
||||
if hasattr(pdb, "xpm"):
|
||||
pdb.xpm() # type: ignore
|
||||
raise
|
||||
|
||||
return next(iter(cfg.nodes))
|
||||
|
||||
+2
-1
@@ -133,7 +133,8 @@ def main(files: list[str], out_dir: Path | None, config_file: Path | None, versi
|
||||
import pdb
|
||||
|
||||
live.stop()
|
||||
pdb.xpm()
|
||||
if hasattr(pdb, "xpm"):
|
||||
pdb.xpm() # type: ignore
|
||||
logger.exception(f"Failed to decompile {pyc_path}")
|
||||
console.rule()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user