From 6a0fabc6472f49621260de215f128a31ae70219b Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Thu, 4 Mar 2021 17:16:11 -0500 Subject: mass rewrite of string formatting to use f-strings everywhere performed by running "pyupgrade --py36-plus" and committing the results --- mesonbuild/cmake/fileapi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mesonbuild/cmake/fileapi.py') diff --git a/mesonbuild/cmake/fileapi.py b/mesonbuild/cmake/fileapi.py index ce63219..6773e9a 100644 --- a/mesonbuild/cmake/fileapi.py +++ b/mesonbuild/cmake/fileapi.py @@ -311,7 +311,7 @@ class CMakeFileAPI: def _reply_file_content(self, filename: Path) -> T.Dict[str, T.Any]: real_path = self.reply_dir / filename if not real_path.exists(): - raise CMakeException('File "{}" does not exist'.format(real_path)) + raise CMakeException(f'File "{real_path}" does not exist') data = json.loads(real_path.read_text()) assert isinstance(data, dict) -- cgit v1.1