mirror of
https://github.com/python/cpython.git
synced 2026-04-04 19:13:16 +00:00
Issue #21391: Use os.path.abspath in the shutil module.
This commit is contained in:
parent
e7811fca5e
commit
3715da5c97
2 changed files with 4 additions and 3 deletions
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue