Преглед на файлове

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,