def __init__(self, *args, **kwargs):
        """Create a new connection to a single MongoDB instance at *host:port*.

        Takes the same constructor arguments as
        :class:`~pymongo.mongo_client.MongoClient`, as well as:

        :Parameters:
          - `io_loop` (optional): Special event loop
            instance to use instead of default
        """
        if 'io_loop' in kwargs:
            io_loop = kwargs.pop('io_loop')
            self._framework.check_event_loop(io_loop)
        else:
            io_loop = self._framework.get_event_loop()

        kwargs.setdefault('connect', False)
        kwargs.setdefault(
            'driver',
            DriverInfo('Motor', motor_version, self._framework.platform_info()))

        delegate = self.__delegate_class__(*args, **kwargs)
        super(AgnosticBaseProperties, self).__init__(delegate)
        self.io_loop = io_loop
def __init__ ( self , * args , ** kwargs ) : if 'io_loop' in kwargs : io_loop = kwargs . pop ( 'io_loop' ) self . _framework . check_event_loop ( io_loop ) else : io_loop = self . _framework . get_event_loop ( ) kwargs . setdefault ( 'connect' , False ) kwargs . setdefault ( 'driver' , DriverInfo ( 'Motor' , motor_version , self . _framework . platform_info ( ) ) ) delegate = self . __delegate_class__ ( * args , ** kwargs ) super ( AgnosticBaseProperties , self ) . __init__ ( delegate ) self . io_loop = io_loop
Create a new connection to a single MongoDB instance at *host:port*.

        Takes the same constructor arguments as
        :class:`~pymongo.mongo_client.MongoClient`, as well as:

        :Parameters:
          - `io_loop` (optional): Special event loop
            instance to use instead of default