def getservicefiledata(self, service, filename):
        ''' Get the customized file data associated with a service. Return None
        for invalid filenames or missing file data.
        '''
        try:
            i = service._configs.index(filename)
        except ValueError:
            return None
        if i >= len(service._configtxt) or service._configtxt[i] is None:
            return None
        return service._configtxt[i]
dataset/ETHPy150Open coreemu/core/daemon/core/service.py/CoreServices.getservicefiledata/original