class_docstr: A list of files built by on exploring the filesystem and filtered by
  applying various patterns to what we find there.
  
  Instance attributes:
    dir
      directory from which files will be taken -- only used if
      'allfiles' not supplied to constructor
    files
      list of filenames currently being built/filtered/manipulated
    allfiles
      complete list of files under consideration (ie. without any
      filtering applied)
class_docstr_tok: ["A","list","of","files","built","by","on","exploring","the","filesystem","and","filtered","by","applying","various","patterns","to","what","we","find","there",".","Instance","attributes",":","dir","directory","from","which","files","will","be","taken","--","only","used","if","'allfiles","'","not","supplied","to","constructor","files","list","of","filenames","currently","being","built\/filtered\/manipulated","allfiles","complete","list","of","files","under","consideration","(","ie",".","without","any","filtering","applied",")"]
code: def _parse_template_line(self, line):
      words = line.split()
      action = words[0]
  
      patterns = dir = dir_pattern = None
  
      if action in (
          "include",
          "exclude",
          "global-include",
          "global-exclude",
      ):
          if len(words) < 2:
              raise DistutilsTemplateError(
                  "'%s' expects <pattern1> <pattern2> ..." % action
              )
          patterns = [convert_path(w) for w in words[1:]]
      elif action in ("recursive-include", "recursive-exclude"):
          if len(words) < 3:
              raise DistutilsTemplateError(
                  "'%s' expects <dir> <pattern1> <pattern2> ..."
                  % action
              )
          dir = convert_path(words[1])
          patterns = [convert_path(w) for w in words[2:]]
      elif action in ("graft", "prune"):
          if len(words) != 2:
              raise DistutilsTemplateError(
                  "'%s' expects a single <dir_pattern>" % action
              )
          dir_pattern = convert_path(words[1])
      else:
          raise DistutilsTemplateError("unknown action '%s'" % action)
  
      return (action, patterns, dir, dir_pattern)
  
imports: import os
  import re
  import fnmatch
  import functools
  from .util import convert_path
  from .errors import DistutilsTemplateError, DistutilsInternalError
  from ._log import log
label_desc: Use image node_id 9 for calling the FileList obj's underlying member method code with example usage: obj._parse_template_line(line) and returns: action,  patterns,  dir,  dir_pattern