[ARVADOS] updated: 589e0f3c2134f08085a5b026e63fdb9d4195b7d8

git at public.curoverse.com git at public.curoverse.com
Thu Apr 30 14:39:56 EDT 2015


Summary of changes:
 sdk/python/arvados/keep.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

       via  589e0f3c2134f08085a5b026e63fdb9d4195b7d8 (commit)
      from  94129ac43095fe8b1361f60adbe4ead0c658e4dd (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 589e0f3c2134f08085a5b026e63fdb9d4195b7d8
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date:   Thu Apr 30 14:39:46 2015 -0400

    5562: Use cStringIO module which is more efficient than StringIO.

diff --git a/sdk/python/arvados/keep.py b/sdk/python/arvados/keep.py
index 4b3feb2..c08598f 100644
--- a/sdk/python/arvados/keep.py
+++ b/sdk/python/arvados/keep.py
@@ -14,7 +14,7 @@ import re
 import socket
 import ssl
 import string
-import StringIO
+import cStringIO
 import subprocess
 import sys
 import threading
@@ -356,7 +356,7 @@ class KeepClient(object):
             try:
                 with timer.Timer() as t:
                     self._headers = {}
-                    response_body = StringIO.StringIO()
+                    response_body = cStringIO.StringIO()
                     curl.setopt(pycurl.NOSIGNAL, 1)
                     curl.setopt(pycurl.OPENSOCKETFUNCTION, self._socket_open)
                     curl.setopt(pycurl.URL, url.encode('utf-8'))
@@ -419,8 +419,8 @@ class KeepClient(object):
             curl = self._get_user_agent()
             try:
                 self._headers = {}
-                body_reader = StringIO.StringIO(body)
-                response_body = StringIO.StringIO()
+                body_reader = cStringIO.StringIO(body)
+                response_body = cStringIO.StringIO()
                 curl.setopt(pycurl.NOSIGNAL, 1)
                 curl.setopt(pycurl.OPENSOCKETFUNCTION, self._socket_open)
                 curl.setopt(pycurl.URL, url.encode('utf-8'))

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list