Files
MoviePilot/app/__init__.py
2026-08-14 15:45:38 +08:00

19 lines
429 B
Python

import warnings
from app.compat.imports import install_legacy_import_hook
def _filter_third_party_startup_warnings() -> None:
"""
过滤第三方库在新版 Python 下产生的已知无害启动警告。
"""
warnings.filterwarnings(
"ignore",
message=r"invalid escape sequence '\\&'",
category=SyntaxWarning,
)
_filter_third_party_startup_warnings()
install_legacy_import_hook()