docs: def parse_stockholm(fobj):
      """Return a list of names from an Stockholm-format sequence alignment
      file. ``fobj`` is an open file or another object representing a
      sequence of lines.
  
      """
  
      names = OrderedDict()
  
      found_eof = False
      for line in fobj:
          line = line.strip()
          if line == '//':
              found_eof = True
          elif line.startswith('#') or not line.strip():
              continue
          else:
              name, __ = line.split(None, 1)
              names[name] = None
  
      if not found_eof:
          raise ValueError('Invalid Stockholm format: no file terminator')
  
      return list(names.keys())