aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/snakeoil/process/__init__.py')
-rw-r--r--src/snakeoil/process/__init__.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/snakeoil/process/__init__.py b/src/snakeoil/process/__init__.py
index f2422695..8966fd65 100644
--- a/src/snakeoil/process/__init__.py
+++ b/src/snakeoil/process/__init__.py
@@ -44,7 +44,7 @@ def get_exit_status(status: int):
if os.WIFSIGNALED(status):
return 128 + os.WTERMSIG(status)
else:
- assert os.WIFEXITED(status), 'Unexpected exit status %r' % status
+ assert os.WIFEXITED(status), "Unexpected exit status %r" % status
return os.WEXITSTATUS(status)
@@ -84,16 +84,14 @@ def exit_as_status(status: int):
class CommandNotFound(Exception):
-
def __init__(self, command):
- super().__init__(f'failed to find binary: {command!r}')
+ super().__init__(f"failed to find binary: {command!r}")
self.command = command
class ProcessNotFound(Exception):
-
def __init__(self, pid):
- super().__init__(f'nonexistent process: {pid}')
+ super().__init__(f"nonexistent process: {pid}")
closerange = os.closerange