def cursorAtSpaceEnd(block):
            cursor = QTextCursor(block)
            cursor.setPosition(block.position() + len(blockIndentation(block)))
            return cursor
def _pool_is_licensed(self):
        if self.have.state == 'LICENSED':
            return True
        return False