gpu/khronos_glcts_support/generate_khronos_glcts_tests.py
def ReadFileAsLines(filename):
  """
    Reads a file, yielding each non-blank line
    and lines that don't begin with #
  """
  with open(filename, "r") as in_file:
    lines = in_file.readlines()
  for line in lines:
    line = line.strip()
    if len(line) > 0 and not line.startswith("#"):
      yield line

    Reads a file, yielding each non-blank line
    and lines that don't begin with #
  
Reads a file, yielding each non-blank line
and lines that don't begin with
Reads a file yielding each non - blank line and lines that don ' t begin with
def ReadFileAsLines(filename):
  with open(filename, "r") as in_file:
    lines = in_file.readlines()
  for line in lines:
    line = line.strip()
    if len(line) > 0 and not line.startswith("#"):
      yield line
def ReadFileAsLines ( filename ) : with open ( filename , "r" ) as in_file : lines = in_file . readlines ( ) for line in lines : line = line . strip ( ) if len ( line ) > 0 and not line . startswith ( "#" ) : yield line
Reads a file, yielding each non-blank line
and lines that don't begin with
Reads a file yielding each non - blank line and lines that don ' t begin with
"""
    Reads a file, yielding each non-blank line
    and lines that don't begin with #
  """
filename