summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-12-27 17:03:45 (GMT)
committerGitHub <noreply@github.com>2023-12-27 17:03:45 (GMT)
commit54927cd21a891f9318e8d02d73503e213b87df34 (patch)
tree67ba738a14730510bcb10e56afc2645265883dc9 /Misc
parenta1f0118a26aece915b213cd2e3cbecee71943b8e (diff)
downloadcpython-54927cd21a891f9318e8d02d73503e213b87df34.zip
cpython-54927cd21a891f9318e8d02d73503e213b87df34.tar.gz
cpython-54927cd21a891f9318e8d02d73503e213b87df34.tar.bz2
[3.11] bpo-26791: Update shutil.move() to provide the same symlink move behavior as the mv shell when moving a symlink into a directory that is the target of the symlink (GH-21759) (GH-113518)
(cherry picked from commit c66b577d9f7a11ffab57985fd6fb22e9dfd4f245) Co-authored-by: Jeffrey Kintscher <49998481+websurfer5@users.noreply.github.com>
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2020-08-06-14-43-55.bpo-26791.KxoEfO.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2020-08-06-14-43-55.bpo-26791.KxoEfO.rst b/Misc/NEWS.d/next/Library/2020-08-06-14-43-55.bpo-26791.KxoEfO.rst
new file mode 100644
index 0000000..c6f8dcb
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2020-08-06-14-43-55.bpo-26791.KxoEfO.rst
@@ -0,0 +1,4 @@
+:func:`shutil.move` now moves a symlink into a directory when that
+directory is the target of the symlink. This provides the same behavior as
+the mv shell command. The previous behavior raised an exception. Patch by
+Jeffrey Kintscher.