summaryrefslogtreecommitdiff
path: root/memcache.py
diff options
context:
space:
mode:
authorSean Reifschneider <jafo@tummy.com>2011-11-27 17:37:52 -0700
committerSean Reifschneider <jafo@tummy.com>2011-11-27 17:37:52 -0700
commita1910ce357b55e132886d8af1ba7858e2a929d5f (patch)
treed94a4f13ea92b8a221c893fab5ec73ba16a9ba26 /memcache.py
parent993ccd84df670f99ff25bdc2cd9bdd623dee24d6 (diff)
downloadpython-memcached-a1910ce357b55e132886d8af1ba7858e2a929d5f.tar.gz
Reverting patch that allows spaces in key.
Diffstat (limited to 'memcache.py')
-rw-r--r--memcache.py2
1 files changed, 1 insertions, 1 deletions
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")