(self, database)
**DEPRECATED**: Get a system js helper for the database `database`.

        SystemJS will be removed in PyMongo 4.0.
**DEPRECATED**: Get a system js helper for the database `database`.
** DEPRECATED ** : Get a system js helper for the database database .
def __init__(self, database):
        """**DEPRECATED**: Get a system js helper for the database `database`.

        SystemJS will be removed in PyMongo 4.0.
        """
        warnings.warn("SystemJS is deprecated",
                      DeprecationWarning, stacklevel=2)

        if not database.write_concern.acknowledged:
            database = database.client.get_database(
                database.name, write_concern=WriteConcern())
        # can't just assign it since we've overridden __setattr__
        object.__setattr__(self, "_db", database)
def __init__ ( self , database ) : warnings . warn ( "SystemJS is deprecated" , DeprecationWarning , stacklevel = 2 ) if not database . write_concern . acknowledged : database = database . client . get_database ( database . name , write_concern = WriteConcern ( ) ) # can't just assign it since we've overridden __setattr__ object . __setattr__ ( self , "_db" , database )