diff options
author | Sean Reifschneider <jafo@tummy.com> | 2011-11-27 17:37:52 -0700 |
---|---|---|
committer | Sean Reifschneider <jafo@tummy.com> | 2011-11-27 17:37:52 -0700 |
commit | a1910ce357b55e132886d8af1ba7858e2a929d5f (patch) | |
tree | d94a4f13ea92b8a221c893fab5ec73ba16a9ba26 | |
parent | 993ccd84df670f99ff25bdc2cd9bdd623dee24d6 (diff) | |
download | python-memcached-a1910ce357b55e132886d8af1ba7858e2a929d5f.tar.gz |
Reverting patch that allows spaces in key.
-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") |