def state_push(self):
for of in self.output_fns:<EOL><INDENT>if hasattr(of,'<STR_LIT>'):<EOL><INDENT>of.state_push()<EOL><DEDENT><DEDENT>super(PatternGenerator, self).state_push()<EOL>
Save the state of the output functions, to be restored with state_pop.