meson/mesonbuild/interpreter/primitives
Eli Schwartz 558f9fed9e
fix regression that broke string.format with list objects
String formatting should validly assume that printing a list means
printing the list itself. Instead, something like this broke:

'one is: @0@ and two is: @1@'.format(['foo',  'bar'], ['baz'])

which would evaluate as:

'one is: foo and two is: bar'

or:

'the value of array option foobar is: @0@'.format(get_option('foobar'))

which should evaluate with '-Dfoobar=[]' as

'the value of array option foobar is: []'

But instead produced:

meson.build:7:0: ERROR: Format placeholder @0@ out of range.

Fixes #9530
2021-11-04 18:57:14 -04:00
..
__init__.py interpreter: Move RangeHolder out of interpreterbase to interpreter 2021-10-06 22:37:18 +02:00
array.py fix various flake8 whitespace errors 2021-10-27 09:51:52 -04:00
boolean.py interpreter: Introduce BooleanHolder for the bool primitive 2021-09-01 19:17:01 +02:00
dict.py interpreter: Holderify arrays and dicts 2021-10-06 22:37:18 +02:00
integer.py fix various flake8 whitespace errors 2021-10-27 09:51:52 -04:00
range.py interpreter: Move RangeHolder out of interpreterbase to interpreter 2021-10-06 22:37:18 +02:00
string.py fix regression that broke string.format with list objects 2021-11-04 18:57:14 -04:00