aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2022-02-13 13:58:54 -0500
committerEli Schwartz <eschwartz@archlinux.org>2022-02-16 18:19:13 -0500
commit0b431a6b4a8ff70905619ce787324c05df81b560 (patch)
treea2d27d97de4ef28dd4bfb53f0548868737399cb9
parent60c893f1c2d348d5c8530c9b0928e6a0bc082217 (diff)
downloadmeson-0b431a6b4a8ff70905619ce787324c05df81b560.zip
meson-0b431a6b4a8ff70905619ce787324c05df81b560.tar.gz
meson-0b431a6b4a8ff70905619ce787324c05df81b560.tar.bz2
fix missing f-string preventing variable formatting
Detected by flake8 which reported that `e` was an unused variable.
-rw-r--r--mesonbuild/minstall.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/minstall.py b/mesonbuild/minstall.py
index d495f63..75a3240 100644
--- a/mesonbuild/minstall.py
+++ b/mesonbuild/minstall.py
@@ -215,7 +215,7 @@ def set_mode(path: str, mode: T.Optional['FileMode'], default_umask: T.Union[str
try:
set_chmod(path, mode.perms, follow_symlinks=False)
except PermissionError as e:
- print('{path!r}: Unable to set permissions {mode.perms_s!r}: {e.strerror}, ignoring...')
+ print(f'{path!r}: Unable to set permissions {mode.perms_s!r}: {e.strerror}, ignoring...')
else:
sanitize_permissions(path, default_umask)