#NEWLINE# def get_list( self , section , key ) : #NEWLINE# #INDENT# '\n        Assumes that the value for a given key is going to be a list\n        separated by commas. It gets rid of trailing comments.\n        If just one item is present it returns a list with a single item, if no\n        key is found an empty list is returned.\n        ' #NEWLINE# value = self . get_safe ( section , key , [ ] ) #NEWLINE# if ( value == [ ] ) : #NEWLINE# #INDENT# return value #NEWLINE# #UNINDENT# value = re . split ( '\\s+#' , value ) [ 0 ] #NEWLINE# value = value . split ( ',' ) #NEWLINE# return [ x . strip ( ) for x in value ]