summaryrefslogtreecommitdiffstats
path: root/Lib/pathlib.py
diff options
context:
space:
mode:
authorBarney Gale <barney.gale@gmail.com>2021-05-16 07:15:25 (GMT)
committerGitHub <noreply@github.com>2021-05-16 07:15:25 (GMT)
commit1a08c5ac49b748d5e4e4b508d22d3804e3cd4dcc (patch)
tree8016106344ee9b6aadae6511961abd0e9cd69673 /Lib/pathlib.py
parentfdfea4ab16ff65234dc30f51ed8056138ab19005 (diff)
downloadcpython-1a08c5ac49b748d5e4e4b508d22d3804e3cd4dcc.zip
cpython-1a08c5ac49b748d5e4e4b508d22d3804e3cd4dcc.tar.gz
cpython-1a08c5ac49b748d5e4e4b508d22d3804e3cd4dcc.tar.bz2
bpo-39950: Fix deprecation warning in test for `pathlib.Path.link_to()` (GH-26155)
Diffstat (limited to 'Lib/pathlib.py')
-rw-r--r--Lib/pathlib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/pathlib.py b/Lib/pathlib.py
index 94e079f..8e6eb48 100644
--- a/Lib/pathlib.py
+++ b/Lib/pathlib.py
@@ -1265,7 +1265,7 @@ class Path(PurePath):
warnings.warn("pathlib.Path.link_to() is deprecated and is scheduled "
"for removal in Python 3.12. "
"Use pathlib.Path.hardlink_to() instead.",
- DeprecationWarning)
+ DeprecationWarning, stacklevel=2)
self._accessor.link(self, target)
# Convenience functions for querying the stat results