summaryrefslogtreecommitdiffstats
path: root/Lib/shutil.py
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2014-09-18 02:11:15 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2014-09-18 02:11:15 (GMT)
commit3715da5c97d98f553f1e0422eda7d129806dbda2 (patch)
tree9f64f55f7252cccca33bae0110a2d731826cec7c /Lib/shutil.py
parente7811fca5ed60ce84ee78327ed485f76a0a09814 (diff)
downloadcpython-3715da5c97d98f553f1e0422eda7d129806dbda2.zip
cpython-3715da5c97d98f553f1e0422eda7d129806dbda2.tar.gz
cpython-3715da5c97d98f553f1e0422eda7d129806dbda2.tar.bz2
Issue #21391: Use os.path.abspath in the shutil module.
Diffstat (limited to 'Lib/shutil.py')
-rw-r--r--Lib/shutil.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/shutil.py b/Lib/shutil.py
index 344d9d3..c2c66de 100644
--- a/Lib/shutil.py
+++ b/Lib/shutil.py
@@ -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):