mirror of
https://github.com/python/cpython.git
synced 2025-07-12 13:55:34 +00:00
Fix wrong way of adding Error information in shutil.copytree.
This commit is contained in:
parent
6f64796c22
commit
c8076dfa9d
1 changed files with 1 additions and 1 deletions
|
@ -236,7 +236,7 @@ def copytree(src, dst, symlinks=False, ignore=None, copy_function=copy2,
|
|||
# Copying file access times may fail on Windows
|
||||
pass
|
||||
else:
|
||||
errors.extend((src, dst, str(why)))
|
||||
errors.append((src, dst, str(why)))
|
||||
if errors:
|
||||
raise Error(errors)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue