parameters: (fp, **kw)
return_statement: return set_uurl(releasify(fp, **kw), **kw)
docstring: Preprocess install.rdf for beta mode
docstring_summary: Preprocess install.rdf for beta mode
docstring_tokens: Preprocess install . rdf for beta mode
function: 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)
function_tokens: 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 )