Commit b50ebaf
authored
Tighten return type of OpenSSL Connection.get_protocol_name() (#5972)
The method always returns a str. See implementation at:
https://github.com/pyca/pyopenssl/blob/30e82d4ba5e3817a77e212540477da701460e988/src/OpenSSL/SSL.py#L2420-L2430
If version were ever None, it would raise an exception on the .decode()
line.1 parent 3dbaf34 commit b50ebaf
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
| 134 | + | |
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| |||
0 commit comments