diff --git a/Lib/dis.py b/Lib/dis.py index 523bd01d929565..6b76f11278ee14 100644 --- a/Lib/dis.py +++ b/Lib/dis.py @@ -363,9 +363,8 @@ def _get_const_value(op, arg, co_consts): assert op in hasconst argval = UNKNOWN - if op == LOAD_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):