From 3715da5c97d98f553f1e0422eda7d129806dbda2 Mon Sep 17 00:00:00 2001 From: Berker Peksag Date: Thu, 18 Sep 2014 05:11:15 +0300 Subject: [PATCH] Issue #21391: Use os.path.abspath in the shutil module. --- Lib/shutil.py | 5 ++--- Misc/NEWS | 2 ++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Lib/shutil.py b/Lib/shutil.py index 344d9d3b8cd..c2c66de5131 100644 --- a/Lib/shutil.py +++ b/Lib/shutil.py @@ -7,7 +7,6 @@ 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): diff --git a/Misc/NEWS b/Misc/NEWS index 6adc7fabe40..8ca38329fe9 100644 --- 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.