#NEWLINE# def _write_pid_file( self , filename ) : #NEWLINE# #INDENT# fs . write_file ( str ( os . getpid ( ) ) , filename ) #NEWLINE# def remove_pid_file( ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# os . remove ( filename ) #NEWLINE# #UNINDENT# except OSError : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# UnhandledExceptionHandler . singleton ( ) . add_teardown_callback ( self )