瀏覽代碼

feat: combined_decorator

Zhang Li 10 月之前
父節點
當前提交
beff35e712
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      cores/post_decorators.py

+ 4 - 4
cores/post_decorators.py

@@ -122,13 +122,13 @@ def rule6_decorator(f, *args, **kwargs):
 decorators = []
 
 
-def register_decorator(decorator):
-    decorators.append(decorator)
+def register_decorator(dtor):
+    decorators.append(dtor)
 
 
 def combined_decorator(func):
-    for decorator in reversed(decorators):
-        func = decorator(func)
+    for dtor in reversed(decorators):
+        func = dtor(func)
     return func