(filename)
return is_framework[-1]
returns (location, name, version) or None
returns (location, name, version) or None
returns ( location name version ) or None
def infoForFramework(filename):
    """returns (location, name, version) or None"""
    global FRAMEWORK_RE
    if FRAMEWORK_RE is None:
        import re
        FRAMEWORK_RE = re.compile(FRAMEWORK_RE_STR)
    is_framework = FRAMEWORK_RE.findall(filename)
    if not is_framework:
        return None
    return is_framework[-1]
def infoForFramework ( filename ) : global FRAMEWORK_RE if FRAMEWORK_RE is None : import re FRAMEWORK_RE = re . compile ( FRAMEWORK_RE_STR ) is_framework = FRAMEWORK_RE . findall ( filename ) if not is_framework : return None return is_framework [ - 1 ]