sort_file: Preserve permission bits
sort_file: Preserve permission bits

isort 4 would overwrite the old file in place, so its permission bits
would not be modified.  But as of commit
1920a6c47796bec4ddc2141dbaece6b44a93834e or so, isort instead writes a
new file with default permission bits and renames it into place.  So
we now need to explicitly copy the permission bits.

Fixes #1194.

Signed-off-by: Anders Kaseorg <087231934ba8fcf78bc142ce37d193b895ac03c4@mit.edu>

PyCQA/isort,PyCQA/isort