Skip to content

Commit

Permalink
Use Path.open() for Supporting python 3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
jjnicola committed May 14, 2020
1 parent 47b907d commit 301b29d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ospd_openvas/lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def acquire_lock(self) -> "LockFile":
parent_dir = self._lock_file_path.parent
parent_dir.mkdir(parents=True, exist_ok=True)

self._fd = open(self._lock_file_path, 'w')
self._fd = self._lock_file_path.open('w')
except PermissionError as e:
logger.error(
"Failed to create lock file %s. %s",
Expand Down

0 comments on commit 301b29d

Please sign in to comment.