#NEWLINE# def __exit__( self , type , value , tb ) : #NEWLINE# #INDENT# _libc . setns ( self . parent_fileno , 0 ) #NEWLINE# try : #NEWLINE# #INDENT# self . target_fd . close ( ) #NEWLINE# #UNINDENT# except Exception : #NEWLINE# #INDENT# LOG . warning ( _LW ( 'Failed to close target_fd: %s' ) , tb . target_fd ) #NEWLINE# pass #NEWLINE# #UNINDENT# self . parent_fd . close ( )