Skip to content

Commit 94d6e05

Browse files
committed
Remove comments that are unneeded when code is more explicit
1 parent 8978cff commit 94d6e05

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Lib/shutil.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -527,12 +527,9 @@ def _copytree(entries, src, dst, symlinks, ignore, copy_function,
527527
else:
528528
copy_function(srcobj, dstname)
529529
elif srcentry.is_dir():
530-
# Will raise shutil.Error containing multiple exceptions gathered
531-
# from recursion
532530
copytree(srcobj, dstname, symlinks, ignore, copy_function,
533531
ignore_dangling_symlinks, dirs_exist_ok)
534532
else:
535-
# Can raise SpecialFileError or SameFileError
536533
copy_function(srcobj, dstname)
537534
except ErrorGroup as err_group:
538535
errors.extend(err_group.args[0])

0 commit comments

Comments
 (0)