changeset: 92461:ab369d809200 user: Berker Peksag date: Thu Sep 18 05:11:15 2014 +0300 files: Lib/shutil.py Misc/NEWS description: Issue #21391: Use os.path.abspath in the shutil module. diff -r c0ca9d32aed4 -r ab369d809200 Lib/shutil.py --- a/Lib/shutil.py Thu Sep 18 03:06:50 2014 +0200 +++ b/Lib/shutil.py Thu Sep 18 05:11:15 2014 +0300 @@ -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 @@ 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 -r c0ca9d32aed4 -r ab369d809200 Misc/NEWS --- a/Misc/NEWS Thu Sep 18 03:06:50 2014 +0200 +++ b/Misc/NEWS Thu Sep 18 05:11:15 2014 +0300 @@ -10,6 +10,8 @@ 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.