From 07d9c72e17d15983f5a54256a0f39cb7414ed3dc Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Tue, 1 Feb 2022 02:14:41 -0500 Subject: flake8: fix wrong numbers of blank line separators --- mesonbuild/compilers/cuda.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mesonbuild/compilers') diff --git a/mesonbuild/compilers/cuda.py b/mesonbuild/compilers/cuda.py index 9662dbc..fc9d52a 100644 --- a/mesonbuild/compilers/cuda.py +++ b/mesonbuild/compilers/cuda.py @@ -259,10 +259,13 @@ class CudaCompiler(Compiler): def is_xcompiler_flag_isolated(flag: str) -> bool: return flag == '-Xcompiler' + def is_xcompiler_flag_glued(flag: str) -> bool: return flag.startswith('-Xcompiler=') + def is_xcompiler_flag(flag: str) -> bool: return is_xcompiler_flag_isolated(flag) or is_xcompiler_flag_glued(flag) + def get_xcompiler_val(flag: str, flagit: T.Iterator[str]) -> str: if is_xcompiler_flag_glued(flag): return flag[len('-Xcompiler='):] -- cgit v1.1