File: strip_example.py

package info (click to toggle)
doxygen 1.8.16-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 22,176 kB
  • sloc: cpp: 245,005; lex: 37,843; ansic: 14,229; xml: 12,168; python: 3,038; tcl: 594; yacc: 576; php: 446; perl: 370; makefile: 213; objc: 14; sh: 11; cs: 5; f90: 4; java: 1
file content (9 lines) | stat: -rw-r--r-- 269 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
import sys
do_print = False
for line in sys.stdin:
    if line.startswith("%--- Begin generated contents ---"):
       do_print = True
    elif line.startswith("%--- End generated contents ---"):
       do_print = False
    elif do_print:
       sys.stdout.write(line)