We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d1ecf9 commit 1cb31a8Copy full SHA for 1cb31a8
uncompyle6/main.py
@@ -17,6 +17,7 @@
17
18
from uncompyle6 import verify, IS_PYPY, PYTHON_VERSION
19
from xdis.code import iscode
20
+from xdis.magics import sysinfo2float
21
from uncompyle6.disas import check_object_path
22
from uncompyle6.semantics import pysource
23
from uncompyle6.parser import ParserError
@@ -52,8 +53,14 @@ def decompile(
52
53
"""
54
ingests and deparses a given code block 'co'
55
56
+ if `bytecode_version` is None, use the current Python intepreter
57
+ version.
58
+
59
Caller is responsible for closing `out` and `mapstream`
60
61
+ if bytecode_version is None:
62
+ bytecode_version = sysinfo2float()
63
64
# store final output stream for case of error
65
real_out = out or sys.stdout
66
0 commit comments