diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2021-07-04 17:51:42 -0400 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2021-07-05 17:55:04 +0300 |
commit | dd31891c1fd6d3b9c955e73bd80170242b6423e5 (patch) | |
tree | b6bfd47a74e3ac4f71904afe2ba1996453ce221b /mesonbuild/interpreter/interpreterobjects.py | |
parent | 566efba216b865bff670901aed98d34f09f8d930 (diff) | |
download | meson-dd31891c1fd6d3b9c955e73bd80170242b6423e5.zip meson-dd31891c1fd6d3b9c955e73bd80170242b6423e5.tar.gz meson-dd31891c1fd6d3b9c955e73bd80170242b6423e5.tar.bz2 |
more f-strings too complex to be caught by pyupgrade
Diffstat (limited to 'mesonbuild/interpreter/interpreterobjects.py')
-rw-r--r-- | mesonbuild/interpreter/interpreterobjects.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/interpreter/interpreterobjects.py b/mesonbuild/interpreter/interpreterobjects.py index 6f5770c..5dc65d0 100644 --- a/mesonbuild/interpreter/interpreterobjects.py +++ b/mesonbuild/interpreter/interpreterobjects.py @@ -340,10 +340,10 @@ class ConfigurationDataObject(MutableInterpreterObject, MesonInterpreterObject): raise InterpreterException("Can not set values on configuration object that has been used.") name, val = args if not isinstance(val, (int, str)): - msg = 'Setting a configuration data value to {!r} is invalid, ' \ + msg = f'Setting a configuration data value to {val!r} is invalid, ' \ 'and will fail at configure_file(). If you are using it ' \ 'just to store some values, please use a dict instead.' - mlog.deprecation(msg.format(val), location=self.current_node) + mlog.deprecation(msg, location=self.current_node) desc = kwargs.get('description', None) if not isinstance(name, str): raise InterpreterException("First argument to set must be a string.") |