diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-01-28 12:49:08 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-01-28 12:49:08 +0100 |
| commit | d4b8105a3b84de6b663da8dfd908e6eef322c33a (patch) | |
| tree | e03dd26fdb1486c7eb4f1839244c8597df472ff8 | |
| parent | 2322e3885105d844b05f835cc5df091d65ddfc34 (diff) | |
Add new script.
| -rwxr-xr-x | hacks/metadata_from_problem | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/hacks/metadata_from_problem b/hacks/metadata_from_problem new file mode 100755 index 000000000..a739d5fdd --- /dev/null +++ b/hacks/metadata_from_problem @@ -0,0 +1,14 @@ +#!/usr/bin/python3 + +import sys + +on = False +for line in sys.stdin: + line = line.strip() + if line == '<?xml version="1.0" encoding="UTF-8"?>' or on: + print(line) + on = True + if line == '</Metadata>': + on = False + + |
