flake8: fix wrong numbers of blank line separators

pull/10011/head
Eli Schwartz 3 years ago
parent baecebda0e
commit 07d9c72e17
No known key found for this signature in database
GPG Key ID: CEB167EFB5722BD6
  1. 1
      mesonbuild/cmake/traceparser.py
  2. 3
      mesonbuild/compilers/cuda.py
  3. 1
      mesonbuild/dependencies/cmake.py
  4. 1
      mesonbuild/interpreter/kwargs.py

@ -388,6 +388,7 @@ class CMakeTraceParser:
target.depends += [key]
working_dir = None
def handle_working_dir(key: str, target: CMakeGeneratorTarget) -> None:
nonlocal working_dir
if working_dir is None:

@ -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='):]

@ -482,7 +482,6 @@ class CMakeDependency(ExternalDependency):
for tgt in partial_modules:
mlog.debug(tgt)
incDirs = [x for x in self.traceparser.get_cmake_var('PACKAGE_INCLUDE_DIRS') if x]
defs = [x for x in self.traceparser.get_cmake_var('PACKAGE_DEFINITIONS') if x]
libs_raw = [x for x in self.traceparser.get_cmake_var('PACKAGE_LIBRARIES') if x]

@ -252,7 +252,6 @@ class DependencyPkgConfigVar(TypedDict):
define_variable: T.List[str]
class DependencyGetVariable(TypedDict):
cmake: T.Optional[str]

Loading…
Cancel
Save