]> granicus.if.org Git - python/commitdiff
Issue #21391: Use os.path.abspath in the shutil module.
authorBerker Peksag <berker.peksag@gmail.com>
Thu, 18 Sep 2014 02:11:15 +0000 (05:11 +0300)
committerBerker Peksag <berker.peksag@gmail.com>
Thu, 18 Sep 2014 02:11:15 +0000 (05:11 +0300)
Lib/shutil.py
Misc/NEWS

index 344d9d3b8cd7fa0e879a2078d9832def3e921b45..c2c66de51314e0d2af59112b496827cfe9b95654 100644 (file)
@@ -7,7 +7,6 @@ XXX The functions here don't copy the resource fork or other metadata on Mac.
 import os
 import sys
 import stat
-from os.path import abspath
 import fnmatch
 import collections
 import errno
@@ -550,8 +549,8 @@ def move(src, dst, copy_function=copy2):
     return real_dst
 
 def _destinsrc(src, dst):
-    src = abspath(src)
-    dst = abspath(dst)
+    src = os.path.abspath(src)
+    dst = os.path.abspath(dst)
     if not src.endswith(os.path.sep):
         src += os.path.sep
     if not dst.endswith(os.path.sep):
index 6adc7fabe408ea0f956dd04bf053e414051d0f79..8ca38329fe946c799c7dc04aebb86c496fa890e7 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -10,6 +10,8 @@ Release date: TBA
 Core and Builtins
 -----------------
 
+- Issue #21391: Use os.path.abspath in the shutil module.
+
 - Issue #11471: avoid generating a JUMP_FORWARD instruction at the end of
   an if-block if there is no else-clause.  Original patch by Eugene Toder.