def openFilesFromLoggers(loggers):
    """returns the open files used by file-based handlers of the specified loggers"""
    openFiles = []
    for logger in loggers:
        for handler in logger.handlers:
            if hasattr(handler, 'stream') and hasattr(handler.stream, 'fileno'
                ):
                openFiles.append(handler.stream)
    return openFiles
