def _get_name_and_version(name, version, for_filename=False):
if for_filename:<EOL><INDENT>name = _FILESAFE.sub('<STR_LIT:->', name)<EOL>version = _FILESAFE.sub('<STR_LIT:->', version.replace('<STR_LIT:U+0020>', '<STR_LIT:.>'))<EOL><DEDENT>return '<STR_LIT>' % (name, version)<EOL>
Return the distribution name with version.

    If for_filename is true, return a filename-escaped form.