You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

21 line
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. )