fix: 修复Uncomply反编译报错
This commit is contained in:
parent
3f6375977c
commit
cd779ef43f
@ -1,5 +1,4 @@
|
|||||||
from typing import List, Tuple
|
from typing import List, Tuple
|
||||||
import uncompyle6
|
|
||||||
import io
|
import io
|
||||||
import os
|
import os
|
||||||
import subprocess
|
import subprocess
|
||||||
@ -39,10 +38,6 @@ def disassemble_pyc(file_path: str, pycdc_addr=None) -> str:
|
|||||||
str: The disassembled code as a string.
|
str: The disassembled code as a string.
|
||||||
"""
|
"""
|
||||||
output = io.StringIO()
|
output = io.StringIO()
|
||||||
try:
|
|
||||||
uncompyle6.main.decompile_file(file_path, output)
|
|
||||||
return output.getvalue()
|
|
||||||
except Exception as e:
|
|
||||||
if pycdc_addr is None:
|
if pycdc_addr is None:
|
||||||
return "none"
|
return "none"
|
||||||
else:
|
else:
|
||||||
|
@ -3,6 +3,5 @@ requests
|
|||||||
packaging
|
packaging
|
||||||
openai
|
openai
|
||||||
bs4
|
bs4
|
||||||
uncompyle6
|
|
||||||
colorama
|
colorama
|
||||||
tqdm
|
tqdm
|
Loading…
x
Reference in New Issue
Block a user