#NEWLINE# def pause( self ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# import psutil #NEWLINE# p = psutil . Process ( self . pid ) #NEWLINE# p . suspend ( ) #NEWLINE# #UNINDENT# except ImportError : #NEWLINE# #INDENT# if common . is_win ( ) : #NEWLINE# #INDENT# print_ ( 'WARN: psutil not installed. Pause functionality will not work properly on Windows.' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# os . kill ( self . pid , signal . SIGSTOP )