def _make_safe_id(self, id):
substitutions = {<EOL>'<STR_LIT:->': '<STR_LIT>',<EOL>'<STR_LIT:/>': '<STR_LIT>',<EOL>'<STR_LIT:\\>': '<STR_LIT>',<EOL>'<STR_LIT:(>': '<STR_LIT>',<EOL>'<STR_LIT:)>': '<STR_LIT>',<EOL>'<STR_LIT:[>': '<STR_LIT>',<EOL>'<STR_LIT:]>': '<STR_LIT>',<EOL>'<STR_LIT:U+002C>': '<STR_LIT>',<EOL>'<STR_LIT:.>': '<STR_LIT>',<EOL>"<STR_LIT:'>": '<STR_LIT>'<EOL>}<EOL>id = re.sub(r'<STR_LIT>', '<STR_LIT>', id)<EOL>for symbol, escape in iteritems(substitutions):<EOL><INDENT>id = id.replace(symbol, escape)<EOL><DEDENT>id = re.sub(r'<STR_LIT>', '<STR_LIT>', id)<EOL>return id<EOL>
Returns a modified id that has been made safe for SBML.

        Replaces or deletes the ones that aren't allowed.