#!/usr/bin/env python

import sys

req_file = sys.argv[1]

lines = []

with open(req_file, 'r') as f:
    r = f.readlines()
    for l in r:
        lines.append(l.split('--hash')[0])

with open(req_file, 'w') as f:
    f.write('\n'.join(lines))
