etcd3ref/client.py
def snapshot(self, file_obj):
        """Take a snapshot of the database.

        :param file_obj: A file-like object to write the database contents in.
        """
        try:
            snapshot_response = self.__snapshot()
        except _InactiveRpcError as e:
            print("Exception {} happened, try to reconnect \n".format(e))
            self.reconnect()
            snapshot_response = self.__snapshot()

        for response in snapshot_response:
            file_obj.write(response.blob)
Take a snapshot of the database.

        :param file_obj: A file-like object to write the database contents in.
        
Take a snapshot of the database.
Take a snapshot of the database .
def snapshot(self, file_obj):
        try:
            snapshot_response = self.__snapshot()
        except _InactiveRpcError as e:
            print("Exception {} happened, try to reconnect \n".format(e))
            self.reconnect()
            snapshot_response = self.__snapshot()
        for response in snapshot_response:
            file_obj.write(response.blob)
def snapshot ( self , file_obj ) : try : snapshot_response = self . __snapshot ( ) except _InactiveRpcError as e : print ( "Exception {} happened, try to reconnect \n" . format ( e ) ) self . reconnect ( ) snapshot_response = self . __snapshot ( ) for response in snapshot_response : file_obj . write ( response . blob )
Take a snapshot of the database.
Take a snapshot of the database .
"""Take a snapshot of the database.

        :param file_obj: A file-like object to write the database contents in.
        """
self
file_obj
A file-like object to write the database contents in.
A file - like object to write the database contents in .