def load_workbook(filename, use_iterators = False):
    """Open the given filename and return the workbook

    :param filename: the path to open
    :type filename: string
    
    :param use_iterators: use lazy load for cells
    :type use_iterators: bool

    :rtype: :class:`..workbook.Workbook`
    
    .. note::
        
        When using lazy load, all worksheets will be :class:`.iter_worksheet.IterableWorksheet`
        and the returned workbook will be read-only. 

    """

    try:
        # fileobject must have been opened with 'rb' flag
        # it is required by zipfile
        if filename.mode not in 'b':
            raise OpenModeError("File-object must be opened in binary mode")
    except AttributeError:
        # filename is not an object
        # it doesn't have mode attribute
        pass

    try:
        archive = ZipFile(filename, 'r', ZIP_DEFLATED)
    except (BadZipfile, RuntimeError, IOError, ValueError) as e:
        raise InvalidFileException(str(e))
    wb = Workbook()

    if use_iterators:
        wb._set_optimized_read()

    try:
        _load_workbook(wb, archive, filename, use_iterators)
    except KeyError as e:
        raise InvalidFileException(str(e))
    except Exception as e:
        raise e
    finally:
        archive.close()
    return wb
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/tablib-0.10.0/tablib/packages/openpyxl3/reader/excel.py/load_workbook/swapped operands of `not in`