Author: Armin Rigo <[email protected]>
Branch: release-1.6.x
Changeset: r46518:a4e9e37cebd6
Date: 2011-08-15 09:12 +0000
http://bitbucket.org/pypy/pypy/changeset/a4e9e37cebd6/

Log:    Grumble. (transplanted from
        af690ea765e2ccd6f5143f6f4e46409b7138019a)

diff --git a/pypy/module/_ssl/interp_ssl.py b/pypy/module/_ssl/interp_ssl.py
--- a/pypy/module/_ssl/interp_ssl.py
+++ b/pypy/module/_ssl/interp_ssl.py
@@ -142,6 +142,7 @@
                                      '__del__() method of ')
 
     def destructor(self):
+        assert isinstance(self, SSLObject)
         if self.peer_cert:
             libssl_X509_free(self.peer_cert)
         if self.ssl:
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to