

def remove_option(self, mask):
    'Unset arbitrary query flags using a bitmask.\n\n        To unset the tailable flag:\n        cursor.remove_option(2)\n        '
    if (not isinstance(mask, int)):
        raise TypeError('mask must be an int')
    self.__check_okay_to_chain()
    if (mask & _QUERY_OPTIONS['slave_okay']):
        self.__slave_okay = False
    if (mask & _QUERY_OPTIONS['exhaust']):
        self.__exhaust = False
    self.__query_flags &= (~ mask)
    return self

dataset/ETHPy150Open blynch/CloudMemeBackend/pymongo/cursor.py Cursor.remove_option/original