#NEWLINE# def save_session( self , session_name ) : #NEWLINE# #INDENT# if ( not serialize . is_valid ( session_name ) ) : #NEWLINE# #INDENT# error_message ( 'invalid_name' , session_name ) #NEWLINE# self . run ( ) #NEWLINE# return #NEWLINE# #UNINDENT# session = Session . save ( e , sublime . windows ( ) ) #NEWLINE# try : #NEWLINE# #INDENT# serialize . dump ( session_name , session ) #NEWLINE# #UNINDENT# except OSError as e : #NEWLINE# #INDENT# error_message ( e . errno )