mirror of
https://gitee.com/openharmony/third_party_nghttp2
synced 2024-11-23 07:50:02 +00:00
10 lines
260 B
Python
Executable File
10 lines
260 B
Python
Executable File
#!/usr/bin/env python
|
|
import re, sys
|
|
|
|
for line in sys.stdin:
|
|
m = re.match(r'(\d+)\s+(\S+)\s+(\S+)?', line)
|
|
print '/* {} */ MAKE_NV("{}", "{}"),'\
|
|
.format(m.group(1),
|
|
m.group(2),
|
|
m.group(3) if m.group(3) else '')
|