def print_msgs(self):
        """Prints messages subscribed to via SUB socket.

        Note that crtl+c is the expected way to exit this loop.

        """
        print "Printing messages, ctrl+c to quit loop..."
        while True:
            try:
                pprint(self.sub_sock.recv())
            except __HOLE__:
                print
                return
dataset/ETHPy150Open IEEERobotics/bot/bot/client/sub_client.py/SubClient.print_msgs