parameters: ()
return_statement: return plat
docstring: Return this platform's maximum compatible version.
  
      distutils.util.get_platform() normally reports the minimum version
      of Mac OS X that would be required to *use* extensions produced by
      distutils.  But what we want when checking compatibility is to know the
      version of Mac OS X that we are *running*.  To allow usage of packages that
      explicitly require a newer version of Mac OS X, we must also know the
      current version of the OS.
  
      If this condition occurs for any other platform with a version in its
      platform strings, this function should be extended accordingly.
docstring_summary: Return this platform's maximum compatible version.
docstring_tokens: Return this platform s maximum compatible version .
function: def get_supported_platform():
      """Return this platform's maximum compatible version.
  
      distutils.util.get_platform() normally reports the minimum version
      of Mac OS X that would be required to *use* extensions produced by
      distutils.  But what we want when checking compatibility is to know the
      version of Mac OS X that we are *running*.  To allow usage of packages that
      explicitly require a newer version of Mac OS X, we must also know the
      current version of the OS.
  
      If this condition occurs for any other platform with a version in its
      platform strings, this function should be extended accordingly.
      """
      plat = get_build_platform()
      m = macosVersionString.match(plat)
      if m is not None and sys.platform == "darwin":
          try:
              plat = 'macosx-%s-%s' % ('.'.join(_macosx_vers()[:2]), m.group(3))
          except ValueError:
              pass    # not Mac OS X
      return plat
function_tokens: def get_supported_platform ( ) : plat = get_build_platform ( ) m = macosVersionString . match ( plat ) if m is not None and sys . platform == "darwin" : try : plat = 'macosx-%s-%s' % ( '.' . join ( _macosx_vers ( ) [ : 2 ] ) , m . group ( 3 ) ) except ValueError : pass # not Mac OS X return plat