diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2022-02-13 20:15:35 -0500 |
---|---|---|
committer | Eli Schwartz <eschwartz@archlinux.org> | 2022-04-14 18:37:03 -0400 |
commit | bb171c2dffd64724803c9a43d7b01e80c3a96064 (patch) | |
tree | 247a84fba58b9e24c9f05c78cf9d8164f8f2d7a1 /mesonbuild/scripts | |
parent | 906aec0df58c9b0fb411edca1934e7263e5d339f (diff) | |
download | meson-bb171c2dffd64724803c9a43d7b01e80c3a96064.zip meson-bb171c2dffd64724803c9a43d7b01e80c3a96064.tar.gz meson-bb171c2dffd64724803c9a43d7b01e80c3a96064.tar.bz2 |
pyupgrade --py37-plus
Some more old style code crept in again.
Additionally, pyupgrade learned to catch more if/elsed code based on the
python version, and delete it.
Diffstat (limited to 'mesonbuild/scripts')
-rw-r--r-- | mesonbuild/scripts/itstool.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/scripts/itstool.py b/mesonbuild/scripts/itstool.py index 72ac3e5..b23ad8a 100644 --- a/mesonbuild/scripts/itstool.py +++ b/mesonbuild/scripts/itstool.py @@ -40,10 +40,10 @@ def run_join(build_dir: str, itstool: str, its_files: T.List[str], mo_files: T.L locale_mo_files = [] for mo_file in mo_files: if not os.path.exists(mo_file): - print('Could not find mo file {}'.format(mo_file)) + print(f'Could not find mo file {mo_file}') return 1 if not mo_file.endswith('.mo'): - print('File is not a mo file: {}'.format(mo_file)) + print(f'File is not a mo file: {mo_file}') return 1 # determine locale of this mo file parts = mo_file.partition('LC_MESSAGES') |