fa45d8aa5f
- health_checklist.json: 192.168.1.122→node122
- ocr_client.py: docstring IP→node122
- docs/market-data-requirements.md: IP→node122
- 所有API调用通过ProxyHandler({})绕过系统代理
Privoxy对node122:18003返回500,直连正常
16 lines
422 B
Python
16 lines
422 B
Python
import os
|
|
import platform
|
|
|
|
NO_EXTENSIONS = bool(os.environ.get("MULTIDICT_NO_EXTENSIONS"))
|
|
|
|
PYPY = platform.python_implementation() == "PyPy"
|
|
|
|
USE_EXTENSIONS = not NO_EXTENSIONS and not PYPY
|
|
|
|
if USE_EXTENSIONS:
|
|
try:
|
|
from . import _multidict # type: ignore[attr-defined] # noqa: F401
|
|
except ImportError: # pragma: no cover
|
|
# FIXME: Refactor for coverage. See #837.
|
|
USE_EXTENSIONS = False
|