parameters: (v, vlist)
docstring: See if we can match v (string) in vlist (list of strings)
      Linux has to match in a fuzzy way.
docstring_summary: See if we can match v (string) in vlist (list of strings)
      Linux has to match in a fuzzy way.
docstring_tokens: See if we can match v ( string ) in vlist ( list of strings ) Linux has to match in a fuzzy way .
function: def get_version_from_list(v, vlist):
      """See if we can match v (string) in vlist (list of strings)
      Linux has to match in a fuzzy way."""
      if is_windows:
          # Simple case, just find it in the list
          if v in vlist: return v
          else: return None
      else:
          # Fuzzy match: normalize version number first, but still return
          # original non-normalized form.
          fuzz = 0.001
          for vi in vlist:
              if math.fabs(linux_ver_normalize(vi) - linux_ver_normalize(v)) < fuzz:
                  return vi
          # Not found
          return None
function_tokens: def get_version_from_list ( v , vlist ) : if is_windows : # Simple case, just find it in the list if v in vlist : return v else : return None else : # Fuzzy match: normalize version number first, but still return # original non-normalized form. fuzz = 0.001 for vi in vlist : if math . fabs ( linux_ver_normalize ( vi ) - linux_ver_normalize ( v ) ) < fuzz : return vi # Not found return None