#NEWLINE# def read_style( string ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# style_node = _grammar . parse ( string ) #NEWLINE# #UNINDENT# except ParseError : #NEWLINE# #INDENT# warning = ( 'Did not understand this style mapping, so ignored it: ' + string ) #NEWLINE# return results . Result ( None , [ results . warning ( style_node ) ] ) #NEWLINE# #UNINDENT# return results . success ( _read_style_node ( style_node ) )