[ARVADOS] updated: 1d0d28c791e88f817b1c01560ee8efd70bcab41e

Git user git at public.curoverse.com
Thu Apr 6 16:21:03 EDT 2017


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

       via  1d0d28c791e88f817b1c01560ee8efd70bcab41e (commit)
      from  e3c48eaab3bbf538a03e575aab09cef59ee69f18 (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 1d0d28c791e88f817b1c01560ee8efd70bcab41e
Author: Tom Clegg <tom at curoverse.com>
Date:   Thu Apr 6 16:20:56 2017 -0400

    8104: Drop unnecessary lambda.

diff --git a/sdk/python/arvados/keep.py b/sdk/python/arvados/keep.py
index 218f9b1..c24b7c1 100644
--- a/sdk/python/arvados/keep.py
+++ b/sdk/python/arvados/keep.py
@@ -344,8 +344,7 @@ class KeepClient(object):
                     self._headers = {}
                     response_body = cStringIO.StringIO()
                     curl.setopt(pycurl.NOSIGNAL, 1)
-                    curl.setopt(pycurl.OPENSOCKETFUNCTION,
-                                lambda *args, **kwargs: self._socket_open(*args, **kwargs))
+                    curl.setopt(pycurl.OPENSOCKETFUNCTION, self._socket_open)
                     curl.setopt(pycurl.URL, url.encode('utf-8'))
                     curl.setopt(pycurl.HTTPHEADER, [
                         '{}: {}'.format(k,v) for k,v in self.get_headers.iteritems()])
@@ -427,8 +426,7 @@ class KeepClient(object):
                     body_reader = cStringIO.StringIO(body)
                     response_body = cStringIO.StringIO()
                     curl.setopt(pycurl.NOSIGNAL, 1)
-                    curl.setopt(pycurl.OPENSOCKETFUNCTION,
-                                lambda *args, **kwargs: self._socket_open(*args, **kwargs))
+                    curl.setopt(pycurl.OPENSOCKETFUNCTION, self._socket_open)
                     curl.setopt(pycurl.URL, url.encode('utf-8'))
                     # Using UPLOAD tells cURL to wait for a "go ahead" from the
                     # Keep server (in the form of a HTTP/1.1 "100 Continue"

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list