#NEWLINE# def __exit__( self , type , value , traceback ) : #NEWLINE# #INDENT# getLogger ( ) . debug ( 'control handler exiting.' ) #NEWLINE# if ( type == KeyboardInterrupt ) : #NEWLINE# #INDENT# getLogger ( ) . debug ( 'upload pausing.' ) #NEWLINE# self . pause ( ) #NEWLINE# type = None #NEWLINE# #UNINDENT# stopControlByQueue ( ) #NEWLINE# return ( type is None )