m2crypto.patch-0.17 1.08 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
Index: /usr/local/lib/python2.5/site-packages/M2Crypto/SSL/Context.py
===================================================================
--- Context.py	(revision 322)
+++ Context.py	(working copy)
@@ -14,13 +14,13 @@
         self.map = {}
 
     def __getitem__(self, key):
-        return self.map[key] 
+        return self.map[repr(key)] 
 
     def __setitem__(self, key, value):
-        self.map[key] = value
+        self.map[repr(key)] = value
 
     def __delitem__(self, key):
-        del self.map[key]
+        del self.map[repr(key)]
 
 def map():
     if _ctxmap.singleton is None:
22 23 24

--- /usr/local/lib/python2.5/site-packages/M2Crypto/m2xmlrpclib.py~
+++ /usr/local/lib/python2.5/site-packages/M2Crypto/m2xmlrpclib.py
Mike Hibler's avatar
Mike Hibler committed
25
@@ -15,6 +15,11 @@
26 27 28
     user_agent = "M2Crypto_XMLRPC/%s - %s" % (__version__, Transport.user_agent)
 
     def __init__(self, ssl_context=None):
Mike Hibler's avatar
Mike Hibler committed
29 30 31 32 33
+        try:
+            getattr(Transport,'__init__')
+            Transport.__init__(self)
+        except:
+            pass
34 35 36
         if ssl_context is None:
             self.ssl_ctx=SSL.Context('sslv23')
         else: