diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2021-10-21 19:05:27 -0400 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2021-10-27 09:51:52 -0400 |
commit | 894735288920816b9ad668ca27ce2e013a3f2640 (patch) | |
tree | 62d4d41bd5adf436507968447480c08120a14a6e /mesonbuild/mesonlib | |
parent | 81a2c1b36d91702d82234136ed1868c7118af322 (diff) | |
download | meson-894735288920816b9ad668ca27ce2e013a3f2640.zip meson-894735288920816b9ad668ca27ce2e013a3f2640.tar.gz meson-894735288920816b9ad668ca27ce2e013a3f2640.tar.bz2 |
fix various flake8 whitespace errors
Diffstat (limited to 'mesonbuild/mesonlib')
-rw-r--r-- | mesonbuild/mesonlib/universal.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/mesonbuild/mesonlib/universal.py b/mesonbuild/mesonlib/universal.py index e142528..dfed042 100644 --- a/mesonbuild/mesonlib/universal.py +++ b/mesonbuild/mesonlib/universal.py @@ -1132,7 +1132,7 @@ def do_replacement(regex: T.Pattern[str], line: str, variable_format: str, def do_define(regex: T.Pattern[str], line: str, confdata: 'ConfigurationData', variable_format: str) -> str: def get_cmake_define(line: str, confdata: 'ConfigurationData') -> str: arr = line.split() - define_value=[] + define_value = [] for token in arr[2:]: try: (v, desc) = confdata.get(token) @@ -1179,13 +1179,13 @@ def get_variable_regex(variable_format: str = 'meson') -> T.Pattern[str]: raise MesonException(f'Format "{variable_format}" not handled') return regex -def do_conf_str (src: str, data: list, confdata: 'ConfigurationData', variable_format: str, - encoding: str = 'utf-8') -> T.Tuple[T.List[str],T.Set[str], bool]: - def line_is_valid(line : str, variable_format: str) -> bool: +def do_conf_str(src: str, data: list, confdata: 'ConfigurationData', variable_format: str, + encoding: str = 'utf-8') -> T.Tuple[T.List[str], T.Set[str], bool]: + def line_is_valid(line: str, variable_format: str) -> bool: if variable_format == 'meson': if '#cmakedefine' in line: return False - else: #cmake format + else: # cmake format if '#mesondefine' in line: return False return True @@ -1206,7 +1206,7 @@ def do_conf_str (src: str, data: list, confdata: 'ConfigurationData', variable_f confdata_useless = False line = do_define(regex, line, confdata, variable_format) else: - if not line_is_valid(line,variable_format): + if not line_is_valid(line, variable_format): raise MesonException(f'Format error in {src}: saw "{line.strip()}" when format set to "{variable_format}"') line, missing = do_replacement(regex, line, variable_format, confdata) missing_variables.update(missing) |