Skip to content

Commit c6e1a8d

Browse files
committed
Push back removal to 3.19
1 parent a1f8819 commit c6e1a8d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Doc/library/pathlib.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -886,7 +886,7 @@ conforming to :rfc:`8089`.
886886
>>> p.as_uri()
887887
'file:///c:/Windows'
888888
889-
.. deprecated-removed:: 3.14 3.16
889+
.. deprecated-removed:: 3.14 3.19
890890

891891
Calling this method from :class:`PurePath` rather than :class:`Path` is
892892
possible but deprecated. The method's use of :func:`os.fsencode` makes

Doc/whatsnew/3.14.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1112,7 +1112,7 @@ Deprecated
11121112

11131113
* :mod:`pathlib`:
11141114
:meth:`!pathlib.PurePath.as_uri` is deprecated and will be removed in Python
1115-
3.16. Use :meth:`pathlib.Path.as_uri` instead.
1115+
3.19. Use :meth:`pathlib.Path.as_uri` instead.
11161116
(Contributed by Barney Gale in :gh:`123599`.)
11171117

11181118
* :mod:`pdb`:

Lib/pathlib/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ def is_reserved(self):
533533
def as_uri(self):
534534
"""Return the path as a URI."""
535535
msg = ("pathlib.PurePath.as_uri() is deprecated and scheduled "
536-
"for removal in Python 3.16. Use pathlib.Path.as_uri().")
536+
"for removal in Python 3.19. Use pathlib.Path.as_uri().")
537537
warnings.warn(msg, DeprecationWarning, stacklevel=2)
538538
if not self.is_absolute():
539539
raise ValueError("relative path can't be expressed as a file URI")

0 commit comments

Comments
 (0)