parameters: (version, build='')
return_statement: return version
docstring: Normalize the version and build strings and return a single
          version string using the format major.minor.build (or patchlevel).
docstring_summary: Normalize the version and build strings and return a single
          version string using the format major.minor.build (or patchlevel).
docstring_tokens: Normalize the version and build strings and return a single version string using the format major . minor . build ( or patchlevel ) .
function: 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 = string.split(version,'.')
      if build:
          l.append(build)
      try:
          ints = map(int,l)
      except ValueError:
          strings = l
      else:
          strings = map(str,ints)
      version = string.join(strings[:3],'.')
      return version
function_tokens: def _norm_version ( version , build = '' ) : l = string . split ( version , '.' ) if build : l . append ( build ) try : ints = map ( int , l ) except ValueError : strings = l else : strings = map ( str , ints ) version = string . join ( strings [ : 3 ] , '.' ) return version