def createASX(url):
    """ 
    Translates the supplied file or url PLS file to 
    an ASX file for WMP. Returns the filename 
    """
    asxf = open(os.path.join(os.environ['TEMP'],'pls2asx.asx'),mode='w')
    asxf.write("<ASX VERSION=\"3.0\">\n")
    asxf.write("<TITLE>wiki.cdyne.com PLS Winamp to Windows Media</TITLE>\n")
    try:
        f = open(url)
    except:
        f = urllib.urlopen(url)
    for entry in entryGen(f):
        asxf.write(entry+'\n')
    asxf.write('</ASX>')
    asxf.close()
    return asxf.name
 
    Translates the supplied file or url PLS file to 
    an ASX file for WMP. Returns the filename 
    
recipes/Python/572191_Play_PLS_audio_stream_Windows/recipe-572191.py