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