diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2024-06-09 01:03:49 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2024-06-14 17:19:53 +0300 |
commit | 9a6fcd4d9a0c7bb248c5d0587632b741a3301e03 (patch) | |
tree | f066ab0ee942d2f12579bb075cb3afbdf3386f0b /mesonbuild/compilers/cython.py | |
parent | c0d86024f5e647858f88bc400b45b3ad88a25c97 (diff) | |
download | meson-9a6fcd4d9a0c7bb248c5d0587632b741a3301e03.zip meson-9a6fcd4d9a0c7bb248c5d0587632b741a3301e03.tar.gz meson-9a6fcd4d9a0c7bb248c5d0587632b741a3301e03.tar.bz2 |
Replace direct indexing with named methods.
Diffstat (limited to 'mesonbuild/compilers/cython.py')
-rw-r--r-- | mesonbuild/compilers/cython.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mesonbuild/compilers/cython.py b/mesonbuild/compilers/cython.py index 76e66c0..7c11286 100644 --- a/mesonbuild/compilers/cython.py +++ b/mesonbuild/compilers/cython.py @@ -84,10 +84,10 @@ class CythonCompiler(Compiler): def get_option_compile_args(self, options: 'KeyedOptionDictType') -> T.List[str]: args: T.List[str] = [] key = self.form_langopt_key('version') - version = options[key] - args.append(f'-{version.value}') + version = options.get_value(key) + args.append(f'-{version}') key = self.form_langopt_key('language') - lang = options[key] - if lang.value == 'cpp': + lang = options.get_value(key) + if lang == 'cpp': args.append('--cplus') return args |