您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

21 行
659 B

  1. from __future__ import annotations
  2. import warnings
  3. from .datastructures import Headers, MultipleValuesError # noqa: F401
  4. with warnings.catch_warnings():
  5. # Suppress redundant DeprecationWarning raised by websockets.legacy.
  6. warnings.filterwarnings("ignore", category=DeprecationWarning)
  7. from .legacy.http import read_request, read_response # noqa: F401
  8. warnings.warn( # deprecated in 9.0 - 2021-09-01
  9. "Headers and MultipleValuesError were moved "
  10. "from websockets.http to websockets.datastructures"
  11. "and read_request and read_response were moved "
  12. "from websockets.http to websockets.legacy.http",
  13. DeprecationWarning,
  14. )