certmaster/SSLConnection.py | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 7c0ab04b1f86814f50f33e0601398fa4e845e934
Author: Seth Vidal <[email protected]>
Date: Wed Sep 8 15:03:48 2010 -0400
in python 2.7 - the things we are sending can also be a 'memoryview' object
so if we get one of those -convert it using tobytes() as its internal object
diff --git a/certmaster/SSLConnection.py b/certmaster/SSLConnection.py
index c266906..93fabb6 100644
--- a/certmaster/SSLConnection.py
+++ b/certmaster/SSLConnection.py
@@ -97,6 +97,9 @@ class SSLConnection:
if not con in write:
raise socket.timeout((110, "Operation timed out."))
+ if hasattr(data, 'tobytes'):
+ data = data.tobytes()
+
starttime = time.time()
origlen = len(data)
sent = -1
_______________________________________________
Func-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/func-list