(version, build='')
return version
Normalize the version and build strings and return a single
        version string using the format major.minor.build (or patchlevel).
Normalize the version and build strings and return a single
        version string using the format major.minor.build (or patchlevel).
Normalize the version and build strings and return a single version string using the format major . minor . build ( or patchlevel ) .
def _norm_version(version, build=''):

    """ Normalize the version and build strings and return a single
        version string using the format major.minor.build (or patchlevel).
    """
    l = version.split('.')
    if build:
        l.append(build)
    try:
        strings = list(map(str, map(int, l)))
    except ValueError:
        strings = l
    version = '.'.join(strings[:3])
    return version
def _norm_version ( version , build = '' ) : l = version . split ( '.' ) if build : l . append ( build ) try : strings = list ( map ( str , map ( int , l ) ) ) except ValueError : strings = l version = '.' . join ( strings [ : 3 ] ) return version