def __init__(self, *args, **kwargs):
        # Make a unittest happy.
        self.use_greenlets = False
        self.auto_start_request = False

        # Motor doesn't implement auto_start_request.
        kwargs.pop('auto_start_request', None)

        if 'read_preference' not in kwargs and (
                kwargs.get('tag_sets') not in (None, [], [{}])):
            # Make test_mongos_connection.TestMongosConnection pass.
            raise ConfigurationError()

        # Motor doesn't support deprecated options slave_okay and safe; but
        # PyMongo still does.
        if 'read_preference' not in kwargs and (
                'slaveok' in kwargs or 'slave_okay' in kwargs):

            secondary = kwargs.pop('slave_okay', kwargs.pop('slaveok', False))
            kwargs['read_preference'] = (
                ReadPreference.SECONDARY_PREFERRED if secondary
                else ReadPreference.PRIMARY)

        gle_opts = dict([
            (k, v) for k, v in kwargs.items()
            if SAFE_OPTIONS in k])

        if gle_opts and 'w' not in gle_opts:
            kwargs['w'] = 1

        if 'safe' in kwargs:
            safe = kwargs.pop('safe')
            if not safe:
                kwargs.setdefault('w', 0)

        self.delegate = kwargs.pop('delegate', None)

        if not self.delegate:
            self.delegate = self.__delegate_class__(*args, **kwargs)
            if kwargs.get('_connect', True):
                self.synchro_connect()
dataset/ETHPy150Open mongodb/motor/synchro/__init__.py/MongoClientBase.__init__/swapped operands of `in`