

def getNewSerial(filePath=DEFAULT_SERIAL_PATH):
    global serial
    if (not serial):
        with open(filePath, 'r') as f:
            serial = int(f.readline().strip())
    rtn = serial
    serial += 1
    return rtn

dataset/ETHPy150Open yymax/x509test/src/Definitions.py getNewSerial/original