

def getFileContentsFromTrove(self, n, v, f, pathList, callback=None, compressed=False):
    server = v.trailingLabel().getHost()
    if (not isinstance(self.c[server], ShimServerProxy)):
        return netclient.NetworkRepositoryClient.getFileContentsFromTrove(self, n, v, f, pathList, callback=callback, compressed=compressed)
    pathList = [self.fromPath(x) for x in pathList]
    v = self.fromVersion(v)
    f = self.fromFlavor(f)
    filePaths = self.c[server].getFileContentsFromTrove(n, v, f, pathList)
    fileObjList = []
    for path in filePaths:
        if compressed:
            fileObjList.append(filecontents.FromFilesystem(path, compressed=True))
        else:
            f = gzip.GzipFile(path, 'r')
            fileObjList.append(filecontents.FromFile(f))
    return fileObjList

dataset/ETHPy150Open sassoftware/conary/conary/repository/shimclient.py ShimNetClient.getFileContentsFromTrove/original