code: def distinfo_dirname(cls, name, version):
          
          name = name.replace('-', '_')
          return '-'.join([name, version]) + DISTINFO_EXT
docs: The *name* and *version* parameters are converted into their
          filename-escaped form, i.e. any ``'-'`` characters are replaced
          with ``'_'`` other than the one in ``'dist-info'`` and the one
          separating the name from the version number.
  
          :parameter name: is converted to a standard distribution name by replacing
                           any runs of non- alphanumeric characters with a single
                           ``'-'``.
          :type name: string
          :parameter version: is converted to a standard version string. Spaces
                              become dots, and all other non-alphanumeric characters
                              (except dots) become dashes, with runs of multiple
                              dashes condensed to a single dash.
          :type version: string
          :returns: directory name
          :rtype: string