mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 00:28:20 +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:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user