From e0e980e0646c299bc8e0dd1b32b85a6e53fd6f6c Mon Sep 17 00:00:00 2001 From: Jon Turney Date: Sun, 26 Aug 2018 14:19:05 +0100 Subject: Remove some spurious calls to the format() function Remove some spurious calls to the format() function, left by mistake after c2f37853 --- mesonbuild/modules/windows.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mesonbuild/modules') diff --git a/mesonbuild/modules/windows.py b/mesonbuild/modules/windows.py index 24bd750..87209d6 100644 --- a/mesonbuild/modules/windows.py +++ b/mesonbuild/modules/windows.py @@ -90,16 +90,16 @@ class WindowsModule(ExtensionModule): if isinstance(src, str): name_format = 'file {!r}' - name = format(os.path.join(state.subdir, src)) + name = os.path.join(state.subdir, src) elif isinstance(src, mesonlib.File): name_format = 'file {!r}' - name = format(src.relative_name()) + name = src.relative_name() elif isinstance(src, build.CustomTarget): if len(src.get_outputs()) > 1: raise MesonException('windows.compile_resources does not accept custom targets with more than 1 output.') name_format = 'target {!r}' - name = format(src.get_id()) + name = src.get_id() else: raise MesonException('Unexpected source type {!r}. windows.compile_resources accepts only strings, files, custom targets, and lists thereof.'.format(src)) -- cgit v1.1