#NEWLINE# def save_tag_dict( self , filename = None , tag_dict = None ) : #NEWLINE# #INDENT# '\n        Saves a tag dictionary to a file as a list of tags.\n        \n        :param tag_dict: the dictionary to save. If None, the default\n            tag_dict for the class will be saved.\n        :param filename: the file where the dictionary should be saved.\n            If None, the class default tag_dict filename will be used.\n        ' #NEWLINE# if ( tag_dict is None ) : #NEWLINE# #INDENT# tag_dict = self . tag_dict #NEWLINE# #UNINDENT# if ( filename is None ) : #NEWLINE# #INDENT# key = ( '%s_tag_dict' % self . task ) #NEWLINE# filename = self . md . paths [ key ] #NEWLINE# #UNINDENT# save_tag_dict ( filename , tag_dict )