summaryrefslogtreecommitdiff
path: root/Lib/dis.py
diff options
context:
space:
mode:
authorJuhi Chandalia <jkchandalia@gmail.com>2023-04-26 12:00:36 -0600
committerGitHub <noreply@github.com>2023-04-26 19:00:36 +0100
commitd45225bd66a8123e4a30314c627f2586293ba532 (patch)
tree6be89e3827bc3c46e5389f1728f81ae85b9e060c /Lib/dis.py
parent1461a22f91a3da2b08f6e485a500bed8b193a601 (diff)
downloadcpython-git-d45225bd66a8123e4a30314c627f2586293ba532.tar.gz
GH-99944: Make dis display the value of oparg of KW_NAMES (#103856)
Co-authored-by: chilaxan <chilaxan@gmail.com>
Diffstat (limited to 'Lib/dis.py')
-rw-r--r--Lib/dis.py5
1 files changed, 2 insertions, 3 deletions
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):