#NEWLINE# def _make_status_codes( self , lines ) : #NEWLINE# #INDENT# 'Make status code from :statuscode lines' #NEWLINE# doc = parse_doc ( lines ) #NEWLINE# status_codes = [ ] #NEWLINE# for status_code in doc . get ( ':statuscode' , [ ] ) : #NEWLINE# #INDENT# status_codes . append ( { #NEWLINE# #INDENT# 'code' : status_code . get ( 'name' ) , #NEWLINE# 'message' : status_code . get ( 'value' , '' ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# return self