Commit 9689abbc authored by Leigh Stoller's avatar Leigh Stoller

Another patch for the current version of m2crypto.

parent 64c21c1a
Index: httpslib.py
Index: /usr/local/lib/python2.4/site-packages/M2Crypto/httpslib.py
===================================================================
--- httpslib.py (revision 213)
+++ httpslib.py (revision 272)
......@@ -29,3 +29,24 @@ Index: httpslib.py
# 2.2.2 and above have the 'strict' param.
def __init__(self, host='', port=None, strict=None, **ssl):
HTTP.__init__(self, host, port, strict)
Index: /usr/local/lib/python2.4/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:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment