def shortTimeSlice(self):
    'returns whether work is finished (no need to call again).'
    tb = self.textBuffer
    if (tb is not None):
        tb.parseScreenMaybe()
        return (tb.parser.resumeAtRow >= len(tb.lines))
    return True
returns whether work is finished (no need to call again).
def shortTimeSlice(self):
    
    tb = self.textBuffer
    if (tb is not None):
        tb.parseScreenMaybe()
        return (tb.parser.resumeAtRow >= len(tb.lines))
    return True