Deprecate nturl2path (#14065)

This commit is contained in:
Semyon Moroz
2025-05-14 13:40:39 +00:00
committed by GitHub
parent 51db4055d0
commit 590f48306c
+12 -2
View File
@@ -1,2 +1,12 @@
def url2pathname(url: str) -> str: ...
def pathname2url(p: str) -> str: ...
import sys
from typing_extensions import deprecated
if sys.version_info >= (3, 14):
@deprecated("nturl2path module was deprecated since Python 3.14")
def url2pathname(url: str) -> str: ...
@deprecated("nturl2path module was deprecated since Python 3.14")
def pathname2url(p: str) -> str: ...
else:
def url2pathname(url: str) -> str: ...
def pathname2url(p: str) -> str: ...