def spin(self):
        """ Perform a single spin """

        for x in self.spinchars:
            self.string = self.msg + "...\t" + x + "\r"
            self.out.write(self.string.encode('utf-8'))
            self.out.flush()
            time.sleep(self.waittime)
def spin ( self ) : for x in self . spinchars : self . string = self . msg + "...\t" + x + "\r" self . out . write ( self . string . encode ( 'utf-8' ) ) self . out . flush ( ) time . sleep ( self . waittime )
Perform a single spin