def release(self, signal=True):
        """
        Unlocks the account.
        Method has no effect if the constructor argument `needs_lock`
        wsa set to False.

        :type signal: bool
        :param signal: Whether to emit the released_event signal.
        """
        if not self.needs_lock:
            return
        with self.synclock:
            self.lock.release()
            if signal:
                self.released_event(self)
            self.synclock.notify_all()
def release ( self , signal = True ) : if not self . needs_lock : return with self . synclock : self . lock . release ( ) if signal : self . released_event ( self ) self . synclock . notify_all ( )
Unlocks the account.
        Method has no effect if the constructor argument `needs_lock`
        wsa set to False.

        :type signal: bool
        :param signal: Whether to emit the released_event signal.