From e38046e6c65b8f03026d13d339a9bacf849b2d85 Mon Sep 17 00:00:00 2001 From: Ben Date: Tue, 17 Jan 2012 15:21:09 -0600 Subject: [PATCH] The async.send method wasn't really doing anything useful. It was just calling the r.send() method of the Request object 'r'. It took an optional kwarg pools, and assigned it to r._pools which isn't used by anything. This situation was eaither broken or not fully implemented yet. I modified async.map to call r.send rather than send(r) and then modified async.send to actually make use of the pool that it is passed. --- requests/async.py | 1 - 1 file changed, 1 deletion(-) diff --git a/requests/async.py b/requests/async.py index 53aa841..fafcb9e 100644 --- a/requests/async.py +++ b/requests/async.py @@ -52,7 +52,6 @@ def send(r, pool=None): and can hence limit concurrency.""" if pool != None: - return pool.spawn(r.send) return gevent.spawn(r.send) -- 2.34.1