cpython: ab369d809200 (original) (raw)
Mercurial > cpython
changeset 92461:ab369d809200
Issue #21391: Use os.path.abspath in the shutil module. [#21391]
Berker Peksag berker.peksag@gmail.com | |
---|---|
date | Thu, 18 Sep 2014 05:11:15 +0300 |
parents | c0ca9d32aed4 |
children | 713ee49ec3ba |
files | Lib/shutil.py Misc/NEWS |
diffstat | 2 files changed, 4 insertions(+), 3 deletions(-)[+] [-] Lib/shutil.py 5 Misc/NEWS 2 |
line wrap: on
line diff
--- a/Lib/shutil.py +++ b/Lib/shutil.py @@ -7,7 +7,6 @@ XXX The functions here don't copy the re 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 = 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):
--- 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. +