PY-66274 Fix compatibility with Python 2.7

GitOrigin-RevId: 70be955e19a04f4ecd953a91ae99efb8b0f079ea
This commit is contained in:
Andrey Lisin
2024-01-16 13:23:59 +01:00
committed by intellij-monorepo-bot
parent ebedb445ac
commit 48e2dd67bc

View File

@@ -115,18 +115,9 @@ _Instruction = namedtuple(
'argval',
'offset',
'starts_line',
],
defaults=[None]
]
)
_Instruction.opname.__doc__ = "Human readable name for operation"
_Instruction.opcode.__doc__ = "Numeric code for operation"
_Instruction.arg.__doc__ = "Numeric argument to operation (if any), otherwise None"
_Instruction.argval.__doc__ = "Resolved arg value (if known), otherwise same as arg"
_Instruction.offset.__doc__ = "Start index of operation within bytecode sequence"
_Instruction.starts_line.__doc__ = \
"Line started by this opcode (if any), otherwise None"
if IS_PY3K:
long = int