diff options
| author | Egor Tensin <egor@tensin.name> | 2026-06-23 16:55:19 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-06-23 16:59:28 +0200 |
| commit | fd0587ba6c790a2440b67ce2becd11ef88713475 (patch) | |
| tree | becf0e7e41021f64a113d04914057673e7109ac1 /vk/platform.py | |
| parent | workflows/ci: allow linting to fail on non-master branches (diff) | |
| download | vk-scripts-fd0587ba6c790a2440b67ce2becd11ef88713475.tar.gz vk-scripts-fd0587ba6c790a2440b67ce2becd11ef88713475.zip | |
use format strings
Diffstat (limited to 'vk/platform.py')
| -rw-r--r-- | vk/platform.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/vk/platform.py b/vk/platform.py index fccaa17..e7ca38a 100644 --- a/vk/platform.py +++ b/vk/platform.py @@ -35,8 +35,7 @@ class Platform(Enum): return self._capitalize_first_letter(_PLATFORM_DESCRIPTIONS[self]) def get_descr_text(self): - s = _PLATFORM_DESCRIPTIONS[self] - return 'the ' + s + return f'the {_PLATFORM_DESCRIPTIONS[self]}' def get_descr_text_capitalized(self): return self._capitalize_first_letter(self.get_descr_text()) |
