def dontNotifyOnDisconnect(self, notifier):
        """

        @param notifier: callback to remove from list of disconnect callbacks.
        """
        try:
            self.disconnects.remove(notifier)
        except ValueError:
            pass


        @param notifier: callback to remove from list of disconnect callbacks.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/spread/pb.py