Skip to content

Commit 90b0587

Browse files
authored
refine Trio version check to handle suffixes like "+dev" (#179)
fixes #178
1 parent cc9bd4d commit 90b0587

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

trio_websocket/_impl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
)
3131
import wsproto.utilities
3232

33-
_TRIO_MULTI_ERROR = tuple(map(int, trio.__version__.split('.'))) < (0, 22, 0)
33+
_TRIO_MULTI_ERROR = tuple(map(int, trio.__version__.split('.')[:2])) < (0, 22)
3434

3535
CONN_TIMEOUT = 60 # default connect & disconnect timeout, in seconds
3636
MESSAGE_QUEUE_SIZE = 1

0 commit comments

Comments
 (0)