소스 검색

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,