diff options
author | Sean Reifschneider <jafo@tummy.com> | 2015-07-31 11:46:13 -0600 |
---|---|---|
committer | Sean Reifschneider <jafo@tummy.com> | 2015-07-31 11:46:13 -0600 |
commit | 664bd3e23fe500fbde4c70636e2d24c8fd2f35af (patch) | |
tree | 8a720be420b1d7fe67f6c007a9f7efeb4aefa17e /memcache.py | |
parent | d9c602ffb15c2619788d159a2fe0aeb1de282f85 (diff) | |
download | python-memcached-664bd3e23fe500fbde4c70636e2d24c8fd2f35af.tar.gz |
Fix for value being boolean in set().release-1.57
Diffstat (limited to 'memcache.py')
-rw-r--r-- | memcache.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/memcache.py b/memcache.py index 60aa186..f5b9f49 100644 --- a/memcache.py +++ b/memcache.py @@ -90,7 +90,7 @@ valid_key_chars_re = re.compile(b'[\x21-\x7e\x80-\xff]+$') # Original author: Evan Martin of Danga Interactive __author__ = "Sean Reifschneider <jafo-memcached@tummy.com>" -__version__ = "1.56" +__version__ = "1.57" __copyright__ = "Copyright (C) 2003 Danga Interactive" # http://en.wikipedia.org/wiki/Python_Software_Foundation_License __license__ = "Python Software Foundation License" @@ -934,7 +934,7 @@ class Client(threading.local): val = val.encode('utf-8') elif isinstance(val, int): flags |= Client._FLAG_INTEGER - val = str(val) + val = '%d' % val if six.PY3: val = val.encode('ascii') # force no attempt to compress this silly string. |