Merge pull request #93 from rpedroso/memcache-double

double -> float
This commit is contained in:
mdipierro
2013-05-14 10:06:24 -07:00
+1 -1
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]