Visitar URL original
gh-88745: Add _winapi.CopyFile2 and update shutil.copy2 to use it by zooba · Pull Request #105055 · python/cpython · GitHub
Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove dead code
  • Loading branch information
zooba committed May 29, 2023
commit 76f379a1b00ec359eb504cc3f93d3efdc0f5ce6b
1 change: 0 additions & 1 deletion Lib/shutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,6 @@ def copy2(src, dst, *, follow_symlinks=True):
flags = _winapi.COPY_FILE_ALLOW_DECRYPTED_DESTINATION # for compat
if not follow_symlinks:
flags |= _winapi.COPY_FILE_COPY_SYMLINK
retry = False
try:
_winapi.CopyFile2(src_, dst_, flags)
return dst
Expand Down