mirror of
https://github.com/httpie/cli.git
synced 2024-11-21 23:33:12 +01:00
Fix typos in comment lines (#1405)
* httpie/internal/daemons.py * httpie/utils.py
This commit is contained in:
parent
d9e1dc08c9
commit
542a2d35de
@ -1,6 +1,6 @@
|
|||||||
"""
|
"""
|
||||||
This module provides an interface to spawn a detached task to be
|
This module provides an interface to spawn a detached task to be
|
||||||
runned with httpie.internal.daemon_runner on a separate process. It is
|
run with httpie.internal.daemon_runner on a separate process. It is
|
||||||
based on DVC's daemon system.
|
based on DVC's daemon system.
|
||||||
https://github.com/iterative/dvc/blob/main/dvc/daemon.py
|
https://github.com/iterative/dvc/blob/main/dvc/daemon.py
|
||||||
"""
|
"""
|
||||||
|
@ -277,7 +277,7 @@ def open_with_lockfile(file: Path, *args, **kwargs) -> Generator[IO[Any], None,
|
|||||||
target_file = Path(tempfile.gettempdir()) / file_id
|
target_file = Path(tempfile.gettempdir()) / file_id
|
||||||
|
|
||||||
# Have an atomic-like touch here, so we'll tighten the possibility of
|
# Have an atomic-like touch here, so we'll tighten the possibility of
|
||||||
# a race occuring between multiple processes accessing the same file.
|
# a race occurring between multiple processes accessing the same file.
|
||||||
try:
|
try:
|
||||||
target_file.touch(exist_ok=False)
|
target_file.touch(exist_ok=False)
|
||||||
except FileExistsError as exc:
|
except FileExistsError as exc:
|
||||||
|
Loading…
Reference in New Issue
Block a user