diff options
| -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") |
