diff options
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | memcache.py | 2 |
2 files changed, 1 insertions, 4 deletions
@@ -4,9 +4,6 @@ code, a simple one would be to use Client().reset_cas() to completely clear the cas_ids cache. Problem pointed out by Shaun Cutts. - * 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 1baa11b..e007c57 100644 --- a/memcache.py +++ b/memcache.py @@ -1015,7 +1015,7 @@ class Client(local): raise Client.MemcachedKeyLengthError("Key length is > %s" % self.server_max_key_length) for char in key: - if ord(char) < 32 or ord(char) == 127: + if ord(char) < 33 or ord(char) == 127: raise Client.MemcachedKeyCharacterError( "Control characters not allowed") |