#NEWLINE# def _add_appservice( self , as_token , id , url , hs_token , sender ) : #NEWLINE# #INDENT# as_yaml = dict ( url = url , as_token = as_token , hs_token = hs_token , id = id , sender_localpart = sender , namespaces = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# with open ( as_token , 'w' ) as outfile : #NEWLINE# #INDENT# outfile . write ( yaml . dump ( as_yaml ) ) #NEWLINE# self . as_yaml_files . append ( id )