def BUILD_CONST_KEY_MAP(decompiler, length): keys = decompiler.stack.pop() assert isinstance(keys, ast.Const) keys = [ast.Const(key) for key in keys.value] values = decompiler.pop_items(length) pairs = list(izip(keys, values)) return ast.Dict(pairs)
def LOAD_CONST(decompiler, const_value): return ast.Const(const_value)