| |
1 #!/usr/bin/env python3 |
| |
2 # |
| |
3 # Pidgin - Internet Messenger |
| |
4 # Copyright (C) Pidgin Developers <devel@pidgin.im> |
| |
5 # |
| |
6 # Pidgin is the legal property of its developers, whose names are too numerous |
| |
7 # to list here. Please refer to the COPYRIGHT file distributed with this |
| |
8 # source distribution. |
| |
9 # |
| |
10 # This program is free software; you can redistribute it and/or modify it under |
| |
11 # the terms of the GNU General Public License as published by the Free Software |
| |
12 # Foundation; either version 2 of the License, or (at your option) any later |
| |
13 # version. |
| |
14 # |
| |
15 # This program is distributed in the hope that it will be useful, but WITHOUT |
| |
16 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
| |
17 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more |
| |
18 # details. |
| |
19 # |
| |
20 # You should have received a copy of the GNU General Public License along with |
| |
21 # this program; if not, see <https://www.gnu.org/licenses/>. |
| |
22 |
| |
23 import sys |
| |
24 |
| |
25 input = sys.argv[1] |
| |
26 output = sys.argv[2] |
| |
27 |
| |
28 with open(input, 'rb') as r, open(output, 'wb') as w: |
| |
29 for line in r.readlines(): |
| |
30 if line.startswith((b'_Name=', b'_Description=', b'_Author=')): |
| |
31 line = line[1:] |
| |
32 w.write(line) |