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.
31 lines
644 B
31 lines
644 B
2 years ago
|
from __future__ import annotations
|
||
|
|
||
|
import sys
|
||
|
|
||
|
from .imports import lazy_import
|
||
|
from .version import version as websockets_version
|
||
|
|
||
|
|
||
|
# For backwards compatibility:
|
||
|
|
||
|
|
||
|
lazy_import(
|
||
|
globals(),
|
||
|
# Headers and MultipleValuesError used to be defined in this module.
|
||
|
aliases={
|
||
|
"Headers": ".datastructures",
|
||
|
"MultipleValuesError": ".datastructures",
|
||
|
},
|
||
|
deprecated_aliases={
|
||
|
"read_request": ".legacy.http",
|
||
|
"read_response": ".legacy.http",
|
||
|
},
|
||
|
)
|
||
|
|
||
|
|
||
|
__all__ = ["USER_AGENT"]
|
||
|
|
||
|
|
||
|
PYTHON_VERSION = "{}.{}".format(*sys.version_info)
|
||
|
USER_AGENT = f"Python/{PYTHON_VERSION} websockets/{websockets_version}"
|