summaryrefslogtreecommitdiff
path: root/memcache.py
diff options
context:
space:
mode:
authorNicolas NoƩ <nicolas@niconoe.eu>2016-12-14 10:44:34 +0100
committerTim Graham <timograham@gmail.com>2017-11-21 13:37:56 -0500
commit0b47212f4f2f7584a840ab3978ccdfc8f8f4fd90 (patch)
tree11828bac6d417fe532120e47a5f791eebe24e80d /memcache.py
parent4670752fa522d3e33db6b58a34033a3b89b9ee82 (diff)
downloadpython-memcached-0b47212f4f2f7584a840ab3978ccdfc8f8f4fd90.tar.gz
Fix touch(..., time=0) sending invalid command to memcache
Without the trailing '0', the command is invalid.
Diffstat (limited to 'memcache.py')
-rw-r--r--memcache.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/memcache.py b/memcache.py
index efb8bff..80c87d6 100644
--- a/memcache.py
+++ b/memcache.py
@@ -553,7 +553,7 @@ class Client(threading.local):
if not server:
return 0
self._statlog(cmd)
- if time is not None and time != 0:
+ if time is not None:
headers = str(time)
else:
headers = None