summaryrefslogtreecommitdiff
path: root/pymemcache/client/base.py
diff options
context:
space:
mode:
authorNick Pope <nick.pope@flightdataservices.com>2020-08-17 22:34:07 +0100
committerNick Pope <nick.pope@flightdataservices.com>2020-08-17 23:35:18 +0100
commit6605f850753b1c5569910c7fb5570e547341350f (patch)
tree0587ede6bb82eb9262cd67117ccde13dc1393c26 /pymemcache/client/base.py
parent1eb73468c92ba21397b986096c35c5244e3816de (diff)
downloadpymemcache-6605f850753b1c5569910c7fb5570e547341350f.tar.gz
Minor cleanups to avoid unnecessary variables.
Diffstat (limited to 'pymemcache/client/base.py')
-rw-r--r--pymemcache/client/base.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/pymemcache/client/base.py b/pymemcache/client/base.py
index 3f44798..2233a4a 100644
--- a/pymemcache/client/base.py
+++ b/pymemcache/client/base.py
@@ -1082,9 +1082,8 @@ class PooledClient(object):
def set_many(self, values, expire=0, noreply=None, flags=None):
with self.client_pool.get_and_release(destroy_on_fail=True) as client:
- failed = client.set_many(values, expire=expire, noreply=noreply,
- flags=flags)
- return failed
+ return client.set_many(values, expire=expire, noreply=noreply,
+ flags=flags)
set_multi = set_many