#NEWLINE# def parse_option( s ) : #NEWLINE# #INDENT# if ( s [ 0 ] == '=' ) : #NEWLINE# #INDENT# s = s [ 1 : ] #NEWLINE# #UNINDENT# if s : #NEWLINE# #INDENT# cats = [ x . upper ( ) . strip ( ) for x in s . split ( '-' ) ] #NEWLINE# options [ 'cats' ] = cats #NEWLINE# #UNINDENT# formt = 'DBG|%(name)s|%(message)s' #NEWLINE# logging . basicConfig ( format = formt , level = logging . DEBUG )