Procházet zdrojové kódy

Modernize super() call to use Python 3 syntax

Jelmer Vernooij před 2 měsíci
rodič
revize
26cbb128db
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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,