diff options
| author | Sean Reifschneider <jafo@tummy.com> | 2011-11-27 17:11:14 -0700 |
|---|---|---|
| committer | Sean Reifschneider <jafo@tummy.com> | 2011-11-27 17:11:14 -0700 |
| commit | caa0279fef7e9622813203f3b187ac20e1c40bb9 (patch) | |
| tree | 96f0a6d5c360f85a0fa28886dce01ab6103f828e | |
| parent | 3ae13cb49a3168ab2c866cac0565150a81c90720 (diff) | |
| download | python-memcached-caa0279fef7e9622813203f3b187ac20e1c40bb9.tar.gz | |
Bug: #794456: Spaces in memcache keynames
Now allow spaces in keys. Proposed by cpaetzel.
| -rw-r--r-- | ChangeLog | 3 | ||||
| -rw-r--r-- | memcache.py | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -1,3 +1,6 @@ + * Bug: #794456: Spaces in memcache keynames + Now allow spaces in keys. Proposed by cpaetzel. + * Bug #728359: Make python-memcache work on memcache restarts. Patch by Tarek Ziade', reviewed and further patches submitted by Hugo Beauze'e-Luysse and Neganov Alexandr. diff --git a/memcache.py b/memcache.py index 34aadbf..53e52b3 100644 --- a/memcache.py +++ b/memcache.py @@ -999,7 +999,7 @@ class Client(local): raise Client.MemcachedKeyLengthError("Key length is > %s" % self.server_max_key_length) for char in key: - if ord(char) < 33 or ord(char) == 127: + if ord(char) < 32 or ord(char) == 127: raise Client.MemcachedKeyCharacterError( "Control characters not allowed") |
