interpreterobjects: clean up ConfigurationData initializer

pull/9850/head
Dylan Baker 3 years ago committed by Eli Schwartz
parent 574525673f
commit 5c979eb21f
  1. 6
      mesonbuild/interpreter/interpreterobjects.py

@ -293,11 +293,9 @@ class ConfigurationDataObject(MutableInterpreterObject, MesonInterpreterObject):
'get_unquoted': self.get_unquoted_method,
'merge_from': self.merge_from_method,
})
if isinstance(initial_values, dict):
if initial_values:
for k, v in initial_values.items():
self.set_method([k, v], {})
elif initial_values:
raise AssertionError('Unsupported ConfigurationDataObject initial_values')
self.conf_data.values[k] = (v, None)
def is_used(self) -> bool:
return self.used

Loading…
Cancel
Save