[pypy-commit] pypy release-1.6.x: Grumble.

arigo noreply at buildbot.pypy.org
Mon Aug 15 11:40:20 CEST 2011


Author: Armin Rigo <arigo at tunes.org>
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:


More information about the pypy-commit mailing list