1#!/usr/bin/python 2# 3 4import sys 5 6for line in sys.stdin: 7 # If line is a 'noisy' warning, don't print it or the following two lines. 8 if ('warning: section' in line and 'is deprecated' in line 9 or 'note: change section name to' in line): 10 next(sys.stdin) 11 next(sys.stdin) 12 else: 13 sys.stdout.write(line) 14 sys.stdout.flush()