def getc(self, block=True):
if not block:<EOL><INDENT>if not len(self.cookedq):<EOL><INDENT>return '<STR_LIT>'<EOL><DEDENT><DEDENT>while not len(self.cookedq):<EOL><INDENT>time.sleep(<NUM_LIT>)<EOL><DEDENT>self.IQUEUELOCK.acquire()<EOL>ret = self.cookedq[<NUM_LIT:0>]<EOL>self.cookedq = self.cookedq[<NUM_LIT:1>:]<EOL>self.IQUEUELOCK.release()<EOL>return ret<EOL>
Return one character from the input queue