diff options
| author | Jussi Pakkanen <jpakkane@gmail.com> | 2015-06-18 21:24:06 +0300 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2015-06-18 21:24:06 +0300 |
| commit | a9b59573bcb81697d27cbcad4be35b4a0a871b1b (patch) | |
| tree | ebfc2ab7c9d99b0e5e622466914e003ed6e70404 /optinterpreter.py | |
| parent | 9107bc35d72ac3232ea9078c632ccec84d911a2e (diff) | |
| download | meson-a9b59573bcb81697d27cbcad4be35b4a0a871b1b.tar.gz | |
Better error message when someone has a malformed meson_options.txt. Closes #160.
Diffstat (limited to 'optinterpreter.py')
| -rw-r--r-- | optinterpreter.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/optinterpreter.py b/optinterpreter.py index 18a84adc5..6d170e829 100644 --- a/optinterpreter.py +++ b/optinterpreter.py @@ -124,9 +124,7 @@ class OptionInterpreter: raise e def reduce_single(self, arg): - if isinstance(arg, mparser.IdNode): - return self.get_variable(arg.value) - elif isinstance(arg, str): + if isinstance(arg, str): return arg elif isinstance(arg, mparser.StringNode): return arg.value |
