Skip to content

Commit e9fc77d

Browse files
committed
Add dates for deprecations.
1 parent b9d7450 commit e9fc77d

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

src/websockets/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@
151151
"handshake": ".legacy",
152152
"parse_uri": ".uri",
153153
"WebSocketURI": ".uri",
154-
# deprecated in 14.0
154+
# deprecated in 14.0 - 2024-11-09
155155
# .legacy.auth
156156
"BasicAuthWebSocketServerProtocol": ".legacy.auth",
157157
"basic_auth_protocol_factory": ".legacy.auth",

src/websockets/auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from .legacy.auth import __all__ # noqa: F401
1111

1212

13-
warnings.warn( # deprecated in 14.0
13+
warnings.warn( # deprecated in 14.0 - 2024-11-09
1414
"websockets.auth, an alias for websockets.legacy.auth, is deprecated; "
1515
"see https://websockets.readthedocs.io/en/stable/howto/upgrade.html "
1616
"for upgrade instructions",

src/websockets/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ def backoff(
392392
lazy_import(
393393
globals(),
394394
deprecated_aliases={
395-
# deprecated in 14.0
395+
# deprecated in 14.0 - 2024-11-09
396396
"WebSocketClientProtocol": ".legacy.client",
397397
"connect": ".legacy.client",
398398
"unix_connect": ".legacy.client",

src/websockets/exceptions.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def __str__(self) -> str:
113113

114114
@property
115115
def code(self) -> int:
116-
warnings.warn( # deprecated in 13.1
116+
warnings.warn( # deprecated in 13.1 - 2024-09-21
117117
"ConnectionClosed.code is deprecated; "
118118
"use Protocol.close_code or ConnectionClosed.rcvd.code",
119119
DeprecationWarning,
@@ -124,7 +124,7 @@ def code(self) -> int:
124124

125125
@property
126126
def reason(self) -> str:
127-
warnings.warn( # deprecated in 13.1
127+
warnings.warn( # deprecated in 13.1 - 2024-09-21
128128
"ConnectionClosed.reason is deprecated; "
129129
"use Protocol.close_reason or ConnectionClosed.rcvd.reason",
130130
DeprecationWarning,
@@ -343,7 +343,7 @@ def __init__(
343343
if isinstance(size_or_message, str):
344344
assert max_size is None
345345
assert cur_size is None
346-
warnings.warn( # deprecated in 14.0
346+
warnings.warn( # deprecated in 14.0 - 2024-11-09
347347
"PayloadTooBig(message) is deprecated; "
348348
"change to PayloadTooBig(size, max_size)",
349349
DeprecationWarning,
@@ -408,7 +408,7 @@ class ConcurrencyError(WebSocketException, RuntimeError):
408408
lazy_import(
409409
globals(),
410410
deprecated_aliases={
411-
# deprecated in 14.0
411+
# deprecated in 14.0 - 2024-11-09
412412
"AbortHandshake": ".legacy.exceptions",
413413
"InvalidMessage": ".legacy.exceptions",
414414
"InvalidStatusCode": ".legacy.exceptions",

src/websockets/legacy/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import warnings
44

55

6-
warnings.warn( # deprecated in 14.0
6+
warnings.warn( # deprecated in 14.0 - 2024-11-09
77
"websockets.legacy is deprecated; "
88
"see https://websockets.readthedocs.io/en/stable/howto/upgrade.html "
99
"for upgrade instructions",

src/websockets/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
580580
lazy_import(
581581
globals(),
582582
deprecated_aliases={
583-
# deprecated in 14.0
583+
# deprecated in 14.0 - 2024-11-09
584584
"WebSocketServer": ".legacy.server",
585585
"WebSocketServerProtocol": ".legacy.server",
586586
"broadcast": ".legacy.server",

0 commit comments

Comments
 (0)