You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 09:22:40 +08:00
Merge from master
This commit is contained in:
@@ -3,8 +3,14 @@
|
||||
# More could be done here though.
|
||||
|
||||
from math import copysign
|
||||
from xdis.codetype import UnicodeForPython3
|
||||
from xdis.version_info import PYTHON_VERSION_TRIPLE
|
||||
|
||||
def get_code_name(code) -> str:
|
||||
code_name = code.co_name
|
||||
if isinstance(code_name, UnicodeForPython3):
|
||||
return code_name.value.decode("utf-8")
|
||||
return code_name
|
||||
|
||||
def is_negative_zero(n):
|
||||
"""Returns true if n is -0.0"""
|
||||
|
Reference in New Issue
Block a user