mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-09 18:39:04 +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:
parent
86099a169f
commit
db169546a9
@ -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
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user