strip_example.py
Go to the documentation of this file.
1 import sys
2 do_print = False
3 for line in sys.stdin:
4  if line.startswith("%--- Begin generated contents ---"):
5  do_print = True
6  elif line.startswith("%--- End generated contents ---"):
7  do_print = False
8  elif do_print:
9  sys.stdout.write(line)