Skip to content

Commit 742ec36

Browse files
committed
Reduce line length and restore doc for opcode
1 parent 0e28896 commit 742ec36

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Lib/dis.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,7 @@ def show_code(co, *, file=None):
310310
)
311311

312312
_Instruction.opname.__doc__ = "Human readable name for operation"
313+
_Instruction.opcode.__doc__ = "Numeric code for operation"
313314
_Instruction.arg.__doc__ = "Numeric argument to operation (if any), otherwise None"
314315
_Instruction.argval.__doc__ = "Resolved arg value (if known), otherwise same as arg"
315316
_Instruction.argrepr.__doc__ = "Human readable description of operation argument"
@@ -376,8 +377,12 @@ class Instruction(_Instruction):
376377
"""
377378

378379
@staticmethod
379-
def make(opname, arg, argval, argrepr, offset, start_offset, starts_line, line_number, label=None, positions=None, cache_info=None):
380-
return Instruction(opname, _all_opmap[opname], arg, argval, argrepr, offset, start_offset, starts_line, line_number, label, positions, cache_info)
380+
def make(
381+
opname, arg, argval, argrepr, offset, start_offset, starts_line,
382+
line_number, label=None, positions=None, cache_info=None
383+
):
384+
return Instruction(opname, _all_opmap[opname], arg, argval, argrepr, offset,
385+
start_offset, starts_line, line_number, label, positions, cache_info)
381386

382387
@property
383388
def oparg(self):

0 commit comments

Comments
 (0)