forked from p34709852/monkey
island: Format cc/environment/utils.py with black
This commit is contained in:
parent
443b66e9d9
commit
5ea046eda5
|
@ -83,7 +83,8 @@ def _create_secure_file_windows(path: str):
|
||||||
file_creation = win32file.CREATE_NEW # fails if file exists
|
file_creation = win32file.CREATE_NEW # fails if file exists
|
||||||
file_attributes = win32file.FILE_FLAG_BACKUP_SEMANTICS
|
file_attributes = win32file.FILE_FLAG_BACKUP_SEMANTICS
|
||||||
|
|
||||||
win32file.CloseHandle(win32file.CreateFile(
|
win32file.CloseHandle(
|
||||||
|
win32file.CreateFile(
|
||||||
path,
|
path,
|
||||||
file_access,
|
file_access,
|
||||||
file_sharing,
|
file_sharing,
|
||||||
|
@ -93,7 +94,8 @@ def _create_secure_file_windows(path: str):
|
||||||
win32job.CreateJobObject(
|
win32job.CreateJobObject(
|
||||||
None, ""
|
None, ""
|
||||||
), # https://stackoverflow.com/questions/46800142/in-python-with-pywin32-win32job-the-createjobobject-function-how-do-i-pass-nu # noqa: E501
|
), # https://stackoverflow.com/questions/46800142/in-python-with-pywin32-win32job-the-createjobobject-function-how-do-i-pass-nu # noqa: E501
|
||||||
))
|
)
|
||||||
|
)
|
||||||
|
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
LOG.error(f'Could not create a file at "{path}": {str(ex)}')
|
LOG.error(f'Could not create a file at "{path}": {str(ex)}')
|
||||||
|
|
Loading…
Reference in New Issue