Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d0339ab

Browse files
committed
Minor fixes
1 parent 7f3c480 commit d0339ab

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Lib/dis.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -318,8 +318,8 @@ class Instruction(_Instruction):
318318
argval - resolved arg value (if known), otherwise same as arg
319319
argrepr - human readable description of operation argument
320320
offset - start index of operation within bytecode sequence
321-
start_offset - start index of operation within bytecode sequence including extended args if present.
322-
Otherwise equal to Instruction.offset
321+
start_offset - start index of operation within bytecode sequence including extended args if present;
322+
otherwise equal to Instruction.offset
323323
starts_line - line started by this opcode (if any), otherwise None
324324
is_jump_target - True if other code jumps to here, otherwise False
325325
positions - Optional dis.Positions object holding the span of source code
@@ -401,7 +401,7 @@ def _disassemble(self, lineno_width=3, mark_as_current=False, offset_width=4):
401401
# the space reserved for oparg. This results in fewer misaligned opargs
402402
# in the disassembly output.
403403
opname_excess = max(0, len(self.opname) - _OPNAME_WIDTH)
404-
fields.append(arg.rjust(_OPARG_WIDTH - opname_excess))
404+
fields.append(repr(self.arg).rjust(_OPARG_WIDTH - opname_excess))
405405
# Column: Opcode argument details
406406
if self.argrepr:
407407
fields.append('(' + self.argrepr + ')')

0 commit comments

Comments
 (0)