瀏覽代碼

Modernize super() call to use Python 3 syntax

Jelmer Vernooij 2 月之前
父節點
當前提交
26cbb128db
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      dulwich/index.py

+ 1 - 1
dulwich/index.py

@@ -1653,7 +1653,7 @@ if sys.platform == "win32":
 
         def __init__(self, errno: int, msg: str, filename: str | None) -> None:
             """Initialize WindowsSymlinkPermissionError."""
-            super(PermissionError, self).__init__(
+            super().__init__(
                 errno,
                 f"Unable to create symlink; do you have developer mode enabled? {msg}",
                 filename,