Sign in
android
/
platform
/
external
/
python
/
mako
/
51dba21
/
.
/
test
/
util.py
blob: e1e3c3b43fc7f18008a3e5927e67146be99945be [
file
] [
log
] [
blame
]
import
re
def
flatten_result
(
result
):
return
re
.
sub
(
r
'[\s\n]+'
,
' '
,
result
).
strip
()
def
result_lines
(
result
):
return
[
x
.
strip
()
for
x
in
re
.
sub
(
r
' +'
,
' '
,
result
).
split
(
'\n'
)
if
x
.
strip
()
!=
''
]