def updateLink(page, lnk):
CheckParent(page)<EOL>annot = getLinkText(page, lnk)<EOL>if annot == "<STR_LIT>":<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>page.parent._updateObject(lnk["<STR_LIT>"], annot, page = page) <EOL>return<EOL>
Update a link on the current page.