aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/ssl.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2015-01-07 11:26:50 -0600
committerBenjamin Peterson <benjamin@python.org>2015-01-07 11:26:50 -0600
commit5318c7aa59ed5fce0fcfdb775d030b9090cef39a (patch)
treebe5c01b5222b700cc650c7504398b075bf6d3869 /Lib/ssl.py
parent4cb17812d94c57868257743dc163b4c62a1de9d7 (diff)
downloadcpython-5318c7aa59ed5fce0fcfdb775d030b9090cef39a.tar.gz
cpython-5318c7aa59ed5fce0fcfdb775d030b9090cef39a.zip
explain None can be returned
Diffstat (limited to 'Lib/ssl.py')
-rw-r--r--Lib/ssl.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/ssl.py b/Lib/ssl.py
index 658e8a722d3..386702b5577 100644
--- a/Lib/ssl.py
+++ b/Lib/ssl.py
@@ -573,7 +573,9 @@ class SSLObject:
return self._sslobj.cipher()
def shared_ciphers(self):
- """Return the ciphers shared by the client during the handshake."""
+ """Return the a list of ciphers shared by the client during the
+ handshake or None if this is not a valid server connection.
+ """
return self._sslobj.shared_ciphers()
def compression(self):