Skip to content
Commit b52b0a09 authored by Anders Kaseorg's avatar Anders Kaseorg
Browse files

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
1920a6c4 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: default avatarAnders Kaseorg <andersk@mit.edu>
parent dfc60dcf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment