def extract_objects(self, srclist):
    obj_src = []
    for src in srclist:
        if (not isinstance(src, str)):
            raise MesonException('Object extraction arguments must be strings.')
        src = File(False, self.subdir, src)
        if (src not in self.sources):
            raise MesonException(('Tried to extract unknown source %s.' % src))
        obj_src.append(src)
    return ExtractedObjects(self, obj_src)
def extract_objects(self, srclist):
    obj_src = []
    for src in srclist:
        if (not isinstance(src, str)):
            raise MesonException('Object extraction arguments must be strings.')
        src = File(False, self.subdir, src)
        if (src not in self.sources):
            raise MesonException(('Tried to extract unknown source %s.' % src))
        obj_src.append(src)
    return ExtractedObjects(self, obj_src)