Home | History | Annotate | Download | only in python2.7

Lines Matching refs:kind

33    t.append(command, kind)
34 where kind is a string of two characters: the first is '-' if the
42 t.prepend(command, kind)
108 def append(self, cmd, kind):
109 """t.append(cmd, kind) adds a new step at the end."""
113 if kind not in stepkinds:
115 'Template.append: bad kind %r' % (kind,)
116 if kind == SOURCE:
122 if kind[0] == 'f' and not re.search(r'\$IN\b', cmd):
125 if kind[1] == 'f' and not re.search(r'\$OUT\b', cmd):
128 self.steps.append((cmd, kind))
130 def prepend(self, cmd, kind):
131 """t.prepend(cmd, kind) adds a new step at the front."""
135 if kind not in stepkinds:
137 'Template.prepend: bad kind %r' % (kind,)
138 if kind == SINK:
144 if kind[0] == 'f' and not re.search(r'\$IN\b', cmd):
147 if kind[1] == 'f' and not re.search(r'\$OUT\b', cmd):
150 self.steps.insert(0, (cmd, kind))
195 # [input filename or '', command string, kind, output filename or '']
198 for cmd, kind in steps:
199 list.append(['', cmd, kind, ''])
208 [cmd, kind] = list[0][1:3]
209 if kind[0] == 'f' and not infile:
213 [cmd, kind] = list[-1][1:3]
214 if kind[1] == 'f' and not outfile:
231 [inf, cmd, kind, outf] = item
232 if kind[1] == 'f':
234 if kind[0] == 'f':
236 if kind[0] == '-' and inf:
238 if kind[1] == '-' and outf:
244 [cmd, kind] = item[1:3]
246 if 'f' in kind: