Mercurial > hg > freeDiameter
view contrib/tools/org_to_csv @ 1519:64191a7142ce
Add 3GPP TS 29.389 V15.1.0 (2019-09)
Add AVPs:
- V2X-Authorization-Data, Grouped, code 4700, section 6.3.2
- V2X-Permission-in-VPLMN, Unsigned32, code 4701, section 6.3.3
- V2X-Application-Server, Grouped, code 4702, section 6.3.4
Fix: All AVPs were missing M and V; assume MUST for both.
author | Luke Mewburn <luke@mewburn.net> |
---|---|
date | Thu, 09 Apr 2020 10:54:52 +1000 |
parents | a86eb3375b95 |
children |
line wrap: on
line source
#!/usr/bin/env python """ Convert |-separated 11-column .org files to CSV, with first and last empty columns ignored. """ import csv import fileinput import re import sys csvout = csv.writer(sys.stdout) for line in fileinput.input(): row = re.split(r'\s*\|\s*', line) row.extend([''] * (10 - len(row))) csvout.writerow(row[1:10]) # vim: set et sw=4 sts=4 :