parameters: ()
docstring: Patch write_pkg_file and read_pkg_file for higher metadata standards
docstring_summary: Patch write_pkg_file and read_pkg_file for higher metadata standards
docstring_tokens: Patch write_pkg_file and read_pkg_file for higher metadata standards
function: def _patch_distribution_metadata():
      """Patch write_pkg_file and read_pkg_file for higher metadata standards"""
      for attr in ('write_pkg_file', 'read_pkg_file', 'get_metadata_version'):
          new_val = getattr(setuptools.dist, attr)
          setattr(distutils.dist.DistributionMetadata, attr, new_val)
function_tokens: def _patch_distribution_metadata ( ) : for attr in ( 'write_pkg_file' , 'read_pkg_file' , 'get_metadata_version' ) : new_val = getattr ( setuptools . dist , attr ) setattr ( distutils . dist . DistributionMetadata , attr , new_val )