mirror of
https://github.com/W1NDes/M-AzurLaneAutoScript.git
synced 2026-05-15 13:30:36 +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…
x
Reference in New Issue
Block a user