清理未使用导入和局部变量
This commit is contained in:
@@ -180,7 +180,6 @@ def _gen_with_session(st: SessionState, order: dict) -> str:
|
||||
def cmd_gen(args) -> int:
|
||||
st = load_session(args.session)
|
||||
order = load_order(args.order)
|
||||
params = {k: order.get(k, "") for k in ORDER_FIELDS}
|
||||
hex_msg = _gen_with_session(st, order)
|
||||
out = Path(args.output) if args.output else ROOT / "config" / "encrypt_msg.txt"
|
||||
out.parent.mkdir(parents=True, exist_ok=True)
|
||||
|
||||
@@ -842,7 +842,6 @@ class VM:
|
||||
def run(self, fn: JSFunction, call_args):
|
||||
"""执行一个 VM 函数实例(h)。fn 来自 make() 或 op87/58 创建的闭包。"""
|
||||
self.inst_id += 1
|
||||
iid = self.inst_id
|
||||
if self.use_init_c and self.init_c is not None:
|
||||
C = self.init_c
|
||||
self.use_init_c = False
|
||||
@@ -855,7 +854,6 @@ class VM:
|
||||
d = [] # 异常续延栈
|
||||
l = UNDEF # 最近异常(op12 读取)
|
||||
o = self.o
|
||||
cap = None # 外部捕获回调(验证用)
|
||||
if not hasattr(self, "_all_trace"):
|
||||
self._all_trace = []
|
||||
while True:
|
||||
|
||||
Reference in New Issue
Block a user