def updateLink(page, lnk):
    """ Update a link on the current page. """
    CheckParent(page)
    annot = getLinkText(page, lnk)
    if annot == "":
        raise ValueError("link kind not supported")

    page.parent._updateObject(lnk["xref"], annot, page = page) 
    return
def updateLink ( page , lnk ) : CheckParent ( page ) annot = getLinkText ( page , lnk ) if annot == "" : raise ValueError ( "link kind not supported" ) page . parent . _updateObject ( lnk [ "xref" ] , annot , page = page ) return
Update a link on the current page.