Skip to content

Commit 26832fe

Browse files
author
rocky
committed
Tweak a comment
1 parent f5a9bf1 commit 26832fe

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

xdis/bytecode.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,8 @@ def is_fixed_wordsize_bytecode(opc) -> bool:
223223
Python byte code instructions before to 3.6 was one or three bytes.
224224
3.6 and after, instructions were fixed at 2 bytes.
225225
"""
226+
# FIXME: We really need to distinguish 3.6.0a1 from 3.6.a3.
227+
# See below FIXME.
226228
return True if opc.python_version >= (3, 6) else False
227229

228230
def get_logical_instruction_at_offset(
@@ -256,10 +258,6 @@ def get_logical_instruction_at_offset(
256258

257259
# label_maps = get_jump_target_maps(bytecode, opc)
258260

259-
# FIXME: We really need to distinguish 3.6.0a1 from 3.6.a3.
260-
# See below FIXME.
261-
# Python 3.6 starts fixed-length bytecode of 2 bytes per instruction.
262-
# Before that and initially, bytecode was either 1 or 3 bytes.
263261
fixed_length_instructions = is_fixed_wordsize_bytecode(opc)
264262

265263
starts_line = None

0 commit comments

Comments
 (0)