Lines Matching refs:kind
110 def append(self, cmd, kind): argument
114 if kind not in stepkinds:
115 raise ValueError('Template.append: bad kind %r' % (kind,))
116 if kind == SOURCE:
120 if kind[0] == 'f' and not re.search(r'\$IN\b', cmd):
122 if kind[1] == 'f' and not re.search(r'\$OUT\b', cmd):
124 self.steps.append((cmd, kind))
126 def prepend(self, cmd, kind): argument
130 if kind not in stepkinds:
131 raise ValueError('Template.prepend: bad kind %r' % (kind,))
132 if kind == SINK:
136 if kind[0] == 'f' and not re.search(r'\$IN\b', cmd):
138 if kind[1] == 'f' and not re.search(r'\$OUT\b', cmd):
140 self.steps.insert(0, (cmd, kind))
186 for cmd, kind in steps:
187 list.append(['', cmd, kind, ''])
196 [cmd, kind] = list[0][1:3]
197 if kind[0] == 'f' and not infile:
201 [cmd, kind] = list[-1][1:3]
202 if kind[1] == 'f' and not outfile:
219 [inf, cmd, kind, outf] = item
220 if kind[1] == 'f':
222 if kind[0] == 'f':
224 if kind[0] == '-' and inf:
226 if kind[1] == '-' and outf:
232 [cmd, kind] = item[1:3]
234 if 'f' in kind: