(original) (raw)

diff -r 0b2e199ad088 Lib/shutil.py --- a/Lib/shutil.py Tue Apr 29 11:34:15 2014 -0700 +++ b/Lib/shutil.py Wed Apr 30 11:43:11 2014 +0300 @@ -77,8 +77,8 @@ return False # All other platforms: check for same pathname. - return (os.path.normcase(os.path.abspath(src)) == - os.path.normcase(os.path.abspath(dst))) + return (os.path.normcase(abspath(src)) == + os.path.normcase(abspath(dst))) def copyfile(src, dst, *, follow_symlinks=True): """Copy data from src to dst. @@ -733,7 +733,7 @@ if root_dir is not None: if logger is not None: logger.debug("changing into '%s'", root_dir) - base_name = os.path.abspath(base_name) + base_name = abspath(base_name) if not dry_run: os.chdir(root_dir)