code: def _reset_sig_handler(self):
          
  
          signal.signal(signal.SIGINT, self.old_sigint)
          signal.signal(signal.SIGTERM, self.old_sigterm)
          try:
              signal.signal(signal.SIGHUP, self.old_sighup)
          except AttributeError:
              pass
docs: Restore the signal handlers to their previous state (before the
           call to _setup_sig_handler().