mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-06 21:16:54 +00:00
Merge branch 'patch-1' into 'master'
Fix wrong file permissions in Git hook. See merge request pycqa/flake8!439
This commit is contained in:
commit
94a9a05e59
1 changed files with 1 additions and 0 deletions
|
|
@ -152,6 +152,7 @@ def copy_file_to(destination_directory, filepath, contents):
|
|||
temporary_filepath = os.path.join(temporary_directory, filename)
|
||||
with open(temporary_filepath, "wb") as fd:
|
||||
fd.write(contents)
|
||||
shutil.copystat(filepath, temporary_filepath)
|
||||
return temporary_filepath
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue