浏览代码

Use keyword arguments.

Jelmer Vernooij 3 年之前
父节点
当前提交
64509034c5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      dulwich/hooks.py

+ 1 - 1
dulwich/hooks.py

@@ -173,7 +173,7 @@ class PostReceiveShellHook(ShellHook):
     def __init__(self, controldir):
         self.controldir = controldir
         filepath = os.path.join(controldir, "hooks", "post-receive")
-        ShellHook.__init__(self, "post-receive", filepath, 0)
+        ShellHook.__init__(self, "post-receive", path=filepath, numparam=0)
 
     def execute(self, client_refs):
         # do nothing if the script doesn't exist