(url)
return fname
:return: detected filename or None
:return: detected filename or None
: return : detected filename or None
def filename_from_url(url):
    """:return: detected filename or None"""
    fname = os.path.basename(urlparse.urlparse(url).path)
    if len(fname.strip(" \n\t.")) == 0:
        return None
    return fname
def filename_from_url ( url ) : fname = os . path . basename ( urlparse . urlparse ( url ) . path ) if len ( fname . strip ( " \n\t." ) ) == 0 : return None return fname