Author: guido.van.rossum
Date: Fri Nov 16 02:28:45 2007
New Revision: 59010

Modified:
   python/branches/py3k/Lib/ssl.py
Log:
Disable dup() of SSLSocket.  I don't think it can be made to work.


Modified: python/branches/py3k/Lib/ssl.py
==============================================================================
--- python/branches/py3k/Lib/ssl.py     (original)
+++ python/branches/py3k/Lib/ssl.py     Fri Nov 16 02:28:45 2007
@@ -140,6 +140,10 @@
         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
_______________________________________________
Python-3000-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000-checkins

Reply via email to