mirror of https://github.com/python/cpython
Fixed broken list extend in 'copy_tree()'.
This commit is contained in:
parent
37bc815053
commit
a002edc85b
|
@ -349,10 +349,10 @@ def copy_tree (src, dst,
|
|||
outputs.append (dst_name)
|
||||
|
||||
elif os.path.isdir (src_name):
|
||||
outputs[-1:] = \
|
||||
outputs.extend (
|
||||
copy_tree (src_name, dst_name,
|
||||
preserve_mode, preserve_times, preserve_symlinks,
|
||||
update, verbose, dry_run)
|
||||
update, verbose, dry_run))
|
||||
else:
|
||||
if (copy_file (src_name, dst_name,
|
||||
preserve_mode, preserve_times,
|
||||
|
|
Loading…
Reference in New Issue