double -> float

This commit is contained in:
Ricardo Pedroso
2013-05-14 00:40:50 +01:00
parent 1a3361a1bb
commit d721451d15

View File

@@ -80,7 +80,7 @@ class MemcacheClientObj(Client):
newKey = self.__keyFormat__(key)
obj = Client.get(self, newKey)
if obj:
if isinstance(obj,(int,double,long)):
if isinstance(obj,(int,float,long)):
return Client.incr(self, newKey, value)
else:
value += obj[1]