double -> float
This commit is contained in:
1 parent
1a3361a1bb
commit
d721451d15
1 file changed
+1
-1
@@ -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]
|
||||
|
||||
Reference in new issue
Block a user