File tree 2 files changed +8
-9
lines changed
2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change 67
67
_UNPACK_COMPRESSION_HEADER = struct .Struct ("<iiB" ).unpack
68
68
_POLL_TIMEOUT = 0.5
69
69
# Errors raised by sockets (and TLS sockets) when in non-blocking mode.
70
- BLOCKING_IO_ERRORS = (BlockingIOError , BLOCKING_IO_LOOKUP_ERROR , * ssl_support .BLOCKING_IO_ERRORS )
70
+ BLOCKING_IO_ERRORS = (BlockingIOError , * BLOCKING_IO_LOOKUP_ERROR , * ssl_support .BLOCKING_IO_ERRORS )
71
71
72
72
73
73
# These socket-based I/O methods are for KMS requests and any other network operations that do not use
Original file line number Diff line number Diff line change 57
57
if HAVE_PYSSL :
58
58
PYSSLError : Any = _pyssl .SSLError
59
59
BLOCKING_IO_ERRORS : tuple = _ssl .BLOCKING_IO_ERRORS + _pyssl .BLOCKING_IO_ERRORS
60
- BLOCKING_IO_READ_ERROR : Any = Union [
61
- _pyssl .BLOCKING_IO_READ_ERROR , _ssl .BLOCKING_IO_READ_ERROR
62
- ]
63
- BLOCKING_IO_WRITE_ERROR : Any = Union [
64
- _pyssl .BLOCKING_IO_WRITE_ERROR , _ssl .BLOCKING_IO_WRITE_ERROR
65
- ]
60
+ BLOCKING_IO_READ_ERROR : tuple = (_pyssl .BLOCKING_IO_READ_ERROR , _ssl .BLOCKING_IO_READ_ERROR )
61
+ BLOCKING_IO_WRITE_ERROR : tuple = (
62
+ _pyssl .BLOCKING_IO_WRITE_ERROR ,
63
+ _ssl .BLOCKING_IO_WRITE_ERROR ,
64
+ )
66
65
else :
67
66
PYSSLError = _ssl .SSLError
68
67
BLOCKING_IO_ERRORS = _ssl .BLOCKING_IO_ERRORS
69
- BLOCKING_IO_READ_ERROR = _ssl .BLOCKING_IO_READ_ERROR
70
- BLOCKING_IO_WRITE_ERROR = _ssl .BLOCKING_IO_WRITE_ERROR
68
+ BLOCKING_IO_READ_ERROR = ( _ssl .BLOCKING_IO_READ_ERROR ,)
69
+ BLOCKING_IO_WRITE_ERROR = ( _ssl .BLOCKING_IO_WRITE_ERROR ,)
71
70
SSLError = _ssl .SSLError
72
71
BLOCKING_IO_LOOKUP_ERROR = BLOCKING_IO_READ_ERROR
73
72
You can’t perform that action at this time.
0 commit comments