예제 #1
0
 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)
예제 #2
0
 def LOAD_CONST(decompiler, const_value):
     return ast.Const(const_value)