diff options
author | Guido van Rossum <guido@python.org> | 2007-11-16 01:28:45 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-11-16 01:28:45 (GMT) |
commit | b7b030ec37bd688d5c3ab2c4a4f28d0544656f99 (patch) | |
tree | f470dc64c97dd17e497711ab9a7e0901f768fc8d /Lib/ssl.py | |
parent | 39eb8fa0dbbcd6568fceb7ca59220aa3281e0cc4 (diff) | |
download | cpython-b7b030ec37bd688d5c3ab2c4a4f28d0544656f99.zip cpython-b7b030ec37bd688d5c3ab2c4a4f28d0544656f99.tar.gz cpython-b7b030ec37bd688d5c3ab2c4a4f28d0544656f99.tar.bz2 |
Disable dup() of SSLSocket. I don't think it can be made to work.
Diffstat (limited to 'Lib/ssl.py')
-rw-r--r-- | Lib/ssl.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -140,6 +140,10 @@ class SSLSocket(socket): self.do_handshake_on_connect = do_handshake_on_connect self.suppress_ragged_eofs = suppress_ragged_eofs + def dup(self): + raise NotImplemented("Can't dup() %s instances" % + self.__class__.__name__) + def _checkClosed(self, msg=None): # raise an exception here if you wish to check for spurious closes pass |