1
0
mirror of https://github.com/0O0o0oOoO00/Alas.git synced 2026-05-14 16:29:25 +08:00

Fix: Clear shell warnings with loose match (#1454)

* Update adb.py

* Update utils.py

* Update adb.py

* Update utils.py

Co-authored-by: LmeSzinc <37934724+LmeSzinc@users.noreply.github.com>
This commit is contained in:
Quadro
2022-07-31 08:03:56 -07:00
committed by GitHub
parent 86099a169f
commit db169546a9

View File

@@ -197,10 +197,9 @@ def remove_shell_warning(s):
str, bytes:
"""
if isinstance(s, bytes):
s = remove_prefix(s, b'WARNING: linker: [vdso]: unused DT entry: type 0x70000001 arg 0x0\n')
return re.sub(b'^WARNING.+\n', b'', s)
elif isinstance(s, str):
s = remove_prefix(s, 'WARNING: linker: [vdso]: unused DT entry: type 0x70000001 arg 0x0\n')
return re.sub('^WARNING.+\n', '', s)
return s