From d45225bd66a8123e4a30314c627f2586293ba532 Mon Sep 17 00:00:00 2001 From: Juhi Chandalia Date: Wed, 26 Apr 2023 12:00:36 -0600 Subject: GH-99944: Make dis display the value of oparg of KW_NAMES (#103856) Co-authored-by: chilaxan --- Lib/dis.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Lib/dis.py') diff --git a/Lib/dis.py b/Lib/dis.py index 8af84c00d0..85c109584b 100644 --- a/Lib/dis.py +++ b/Lib/dis.py @@ -369,9 +369,8 @@ def _get_const_value(op, arg, co_consts): assert op in hasconst argval = UNKNOWN - if op == LOAD_CONST or op == RETURN_CONST: - if co_consts is not None: - argval = co_consts[arg] + if co_consts is not None: + argval = co_consts[arg] return argval def _get_const_info(op, arg, co_consts): -- cgit v1.2.1