userver
C++ Async Framework
Loading...
Searching...
No Matches
tskv.py
1
import
typing
2
3
TskvRow = typing.Dict[str, str]
4
5
6
def
parse_line(line: str) -> TskvRow:
7
parts = line.rstrip(
'\n'
).split(
'\t'
)
8
if
parts[:1] != [
'tskv'
]:
9
raise
RuntimeError(f
'Invalid tskv line: {line!r}'
)
10
result = {}
11
for
part
in
parts[1:]:
12
key, value = part.split(
'='
, 1)
13
result[key] = value
14
return
result
testsuite
pytest_plugins
pytest_userver
utils
tskv.py
Generated on Wed May 15 2024 22:31:38 for userver by
Doxygen
1.10.0