island: Fix comment and statement formatting in file_utils.py

This commit is contained in:
Shreya 2021-06-15 18:57:18 +05:30
parent 14371f3fba
commit b648452b5f
1 changed files with 2 additions and 3 deletions

View File

@ -80,9 +80,8 @@ def _get_file_descriptor_for_new_secure_file_linux(path: str):
def _get_file_descriptor_for_new_secure_file_windows(path: str):
try:
file_access = win32file.GENERIC_READ | win32file.GENERIC_WRITE
file_sharing = (
win32file.FILE_SHARE_READ
) # subsequent open operations on the object will succeed only if read access is requested
# subsequent open operations on the object will succeed only if read access is requested
file_sharing = win32file.FILE_SHARE_READ
security_attributes = win32security.SECURITY_ATTRIBUTES()
security_attributes.SECURITY_DESCRIPTOR = (
windows_permissions.get_security_descriptor_for_owner_only_perms()