aboutsummaryrefslogtreecommitdiff
path: root/fontconfig/src/cleangperf.py
blob: a276312c9b54c03313245c334635dfbcd2af1ebe (plain)
1
2
3
4
5
6
7
8
import sys,re

inbuffer=sys.stdin.read()
inbuffer=re.sub(r'[ \t\r\n]*\n[ \t]*',r'\n',inbuffer)
inbuffer=re.sub(r'[ \t\r\n]*,[ \t\r\n]',r',',inbuffer)
inbuffer=re.sub(r'\n#[^\n]+','',inbuffer)
sys.stdout.write(inbuffer)