regolith/mongoclient.py
def is_alive(self):
        """Returns whether or not the client is alive and availabe to
        send/recieve data.
        """
        if self.client is None:
            return False
        elif ON_PYMONGO_V2:
            return self.client.alive()
        elif ON_PYMONGO_V3:
            cmd = ['mongostat', '--host', 'localhost', '-n', '1']
            try:
                subprocess.check_call(cmd)
                alive = True
            except subprocess.CalledProcessError:
                alive = False
            return alive
        else:
            return False
Returns whether or not the client is alive and availabe to
        send/recieve data.
        
Returns whether or not the client is alive and availabe to
send/recieve data.
Returns whether or not the client is alive and availabe to send / recieve data .
def is_alive(self):
        if self.client is None:
            return False
        elif ON_PYMONGO_V2:
            return self.client.alive()
        elif ON_PYMONGO_V3:
            cmd = ['mongostat', '--host', 'localhost', '-n', '1']
            try:
                subprocess.check_call(cmd)
                alive = True
            except subprocess.CalledProcessError:
                alive = False
            return alive
        else:
            return False
def is_alive ( self ) : if self . client is None : return False elif ON_PYMONGO_V2 : return self . client . alive ( ) elif ON_PYMONGO_V3 : cmd = [ 'mongostat' , '--host' , 'localhost' , '-n' , '1' ] try : subprocess . check_call ( cmd ) alive = True except subprocess . CalledProcessError : alive = False return alive else : return False
Returns whether or not the client is alive and availabe to
send/recieve data.
Returns whether or not the client is alive and availabe to send / recieve data .
"""Returns whether or not the client is alive and availabe to
        send/recieve data.
        """
self