Changed code to support older Python versions
This commit is contained in:
parent
eb92d2d36f
commit
582458cdd0
5027 changed files with 794942 additions and 4 deletions
|
|
@ -0,0 +1,35 @@
|
|||
from mcstatus.responses import (
|
||||
BaseStatusPlayers,
|
||||
BaseStatusResponse,
|
||||
BaseStatusVersion,
|
||||
BedrockStatusPlayers,
|
||||
BedrockStatusResponse,
|
||||
BedrockStatusVersion,
|
||||
JavaStatusPlayer,
|
||||
JavaStatusPlayers,
|
||||
JavaStatusResponse,
|
||||
JavaStatusVersion,
|
||||
)
|
||||
|
||||
# __all__ is frozen on the moment of deprecation
|
||||
__all__ = [
|
||||
"BaseStatusPlayers",
|
||||
"BaseStatusResponse",
|
||||
"BaseStatusVersion",
|
||||
"BedrockStatusPlayers",
|
||||
"BedrockStatusResponse",
|
||||
"BedrockStatusVersion",
|
||||
"JavaStatusPlayer",
|
||||
"JavaStatusPlayers",
|
||||
"JavaStatusResponse",
|
||||
"JavaStatusVersion",
|
||||
]
|
||||
|
||||
|
||||
import warnings
|
||||
|
||||
warnings.warn(
|
||||
"`mcstatus.status_response` is deprecated, and will be removed at 2025-12, use `mcstatus.responses` instead",
|
||||
DeprecationWarning,
|
||||
stacklevel=2,
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue