def incr(fname):
    fhandle = open(fname, 'r+')
    current = int(fhandle.readline(), 16)
    print(current)
    current = current + 1
    fhandle.seek(0)
    fhandle.write(str(format(current, 'x')))
    fhandle.truncate()
    fhandle.close()
    return current
Return the service info for a service by label, filename or path
dataset/ETHPy150Open EricssonResearch/calvin-base/calvin/utilities/certificate.py/incr--crossover with--dataset/ETHPy150Open saltstack/salt/salt/modules/launchctl.py/_service_by_name