git » kde5-pkgbuilds.git » main » tree

[main] / rmsums.py

#!/usr/bin/env python3

import os
import sys
import re

m = re.compile("^[0-9a-z]+sums=\(")

lookend = False
for line in sys.stdin:
    if m.search(line):
        lookend = True
    if lookend:
        if ')' in line:
            lookend = False
        continue
    print(line, end='')