mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-06-16 05:01:16 +08:00
16 lines
341 B
Python
16 lines
341 B
Python
import warnings
|
|
|
|
|
|
def _filter_third_party_startup_warnings() -> None:
|
|
"""
|
|
过滤第三方库在新版 Python 下产生的已知无害启动警告。
|
|
"""
|
|
warnings.filterwarnings(
|
|
"ignore",
|
|
message=r"invalid escape sequence '\\&'",
|
|
category=SyntaxWarning,
|
|
)
|
|
|
|
|
|
_filter_third_party_startup_warnings()
|