mirror of
https://gh.wpcy.net/https://github.com/WeblateOrg/weblate.git
synced 2026-05-14 14:37:15 +08:00
20 lines
483 B
Python
Executable file
20 lines
483 B
Python
Executable file
#!/usr/bin/env python3
|
|
|
|
import sys
|
|
|
|
if len(sys.argv) != 2:
|
|
raise Exception('Missing argument')
|
|
|
|
start = 'weblate {}\n'.format(sys.argv[1])
|
|
display = False
|
|
|
|
with open('docs/changes.rst', 'r') as handle:
|
|
for line in handle:
|
|
if display:
|
|
if line.startswith('weblate '):
|
|
break
|
|
elif not line.startswith('--'):
|
|
print(line, end='')
|
|
elif line == start:
|
|
display = True
|
|
print(line, end='')
|