def incr(self, key, delta=1):
        val = self.get(key)
        if val is None:
            return None
        try:
            val = long(val)
        except ValueError:
            return None
        val = str(val + delta)
        self.set(key, val)
        return val
dataset/ETHPy150Open sassoftware/conary/conary/repository/netrepos/cache.py/DumbCache.incr/original