summaryrefslogtreecommitdiffstats
path: root/Lib/nturl2path.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/nturl2path.py')
-rw-r--r--Lib/nturl2path.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/Lib/nturl2path.py b/Lib/nturl2path.py
index 7b5b820..57c7858 100644
--- a/Lib/nturl2path.py
+++ b/Lib/nturl2path.py
@@ -3,7 +3,15 @@
This module only exists to provide OS-specific code
for urllib.requests, thus do not use directly.
"""
-# Testing is done through test_urllib.
+# Testing is done through test_nturl2path.
+
+import warnings
+
+
+warnings._deprecated(
+ __name__,
+ message=f"{warnings._DEPRECATED_MSG}; use 'urllib.request' instead",
+ remove=(3, 19))
def url2pathname(url):
"""OS-specific conversion from a relative URL of the 'file' scheme