setup.py
def get_vprof_version(filename):
    """Returns actual version specified in filename."""
    with open(filename) as src_file:
        version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
                                  src_file.read(), re.M)
        if version_match:
            return version_match.group(1)
        raise RuntimeError('Unable to find version info.')
def get_vprof_version(filename):
    with open(filename) as src_file:
        version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
                                  src_file.read(), re.M)
        if version_match:
            return version_match.group(1)
        raise RuntimeError('Unable to find version info.')
def get_vprof_version ( filename ) : with open ( filename ) as src_file : version_match = re . search ( r"^__version__ = ['\"]([^'\"]*)['\"]" , src_file . read ( ) , re . M ) if version_match : return version_match . group ( 1 ) raise RuntimeError ( 'Unable to find version info.' )
Returns actual version specified in filename.
Returns actual version specified in filename .