aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/vk/mutuals.py
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-06-23 16:55:19 +0200
committerEgor Tensin <egor@tensin.name>2026-06-23 16:59:28 +0200
commitfd0587ba6c790a2440b67ce2becd11ef88713475 (patch)
treebecf0e7e41021f64a113d04914057673e7109ac1 /vk/mutuals.py
parentworkflows/ci: allow linting to fail on non-master branches (diff)
downloadvk-scripts-fd0587ba6c790a2440b67ce2becd11ef88713475.tar.gz
vk-scripts-fd0587ba6c790a2440b67ce2becd11ef88713475.zip
use format strings
Diffstat (limited to 'vk/mutuals.py')
-rw-r--r--vk/mutuals.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/vk/mutuals.py b/vk/mutuals.py
index 1400ac5..062d07c 100644
--- a/vk/mutuals.py
+++ b/vk/mutuals.py
@@ -67,14 +67,14 @@ class OutputFormat(Enum):
return OutputSinkCSV(fd)
if self is OutputFormat.JSON:
return OutputSinkJSON(fd)
- raise NotImplementedError('unsupported output format: ' + str(self))
+ raise NotImplementedError(f'unsupported output format: {self}')
def _parse_output_format(s):
try:
return OutputFormat(s)
except ValueError:
- raise argparse.ArgumentTypeError('invalid output format: ' + s)
+ raise argparse.ArgumentTypeError(f'invalid output format: {s}')
def _parse_args(args=None):