Permalink
Browse files

Merge pull request #1 from xpoft/patch-1

DELETE cmd can contains non-ascii chars.
  • Loading branch information...
2 parents 9a5f1eb + 56842f5 commit e4648926c45de2821f377475ea8f9eca6778839e @eguven committed Apr 25, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 memcache.py
View
@@ -367,7 +367,7 @@ def delete(self, key, time=0):
cmd = "delete %s" % key
try:
- server.send_cmd(cmd)
+ server.send_cmd(cmd.encode('utf-8'))
server.expect(b"DELETED")
except socket.error as msg:
if type(msg) is tuple: msg = msg[1]

0 comments on commit e464892

Please sign in to comment.