(fp, **kw)
return set_uurl(releasify(fp, **kw), **kw)
Preprocess install.rdf for beta mode
Preprocess install.rdf for beta mode
Preprocess install . rdf for beta mode
def betardf(fp, **kw):
    """ Preprocess install.rdf for beta mode """

    with Reset(fp):
        rdf = XML(fp.read())
    node = rdf.getElementsByTagNameNS(NS_EM, 'version')[0].firstChild
    if not re.match(r"^\d\.\db\d+$", node.data):
        raise ValueError("Invalid beta version: {}".format(node.data))

    return set_uurl(releasify(fp, **kw), **kw)
def betardf ( fp , * * kw ) : with Reset ( fp ) : rdf = XML ( fp . read ( ) ) node = rdf . getElementsByTagNameNS ( NS_EM , 'version' ) [ 0 ] . firstChild if not re . match ( r"^\d\.\db\d+$" , node . data ) : raise ValueError ( "Invalid beta version: {}" . format ( node . data ) ) return set_uurl ( releasify ( fp , * * kw ) , * * kw )