Sign in
fuchsia
/
third_party
/
mako
/
92700475248c72f2c3a6e427f754e582a2b575fb
/
.
/
test
/
util.py
blob: 29225e232bad41602e5cd1e6cd94fef3b7d5ac8a [
file
] [
log
] [
blame
]
import
re
def
flatten_result
(
result
):
return
re
.
sub
(
r
"[\s\r\n]+"
,
" "
,
result
).
strip
()
def
result_lines
(
result
):
return
[
x
.
strip
()
for
x
in
re
.
split
(
r
"\r?\n"
,
re
.
sub
(
r
" +"
,
" "
,
result
))
if
x
.
strip
()
!=
""
]