Should be.

signal.signal(signal.SIGHUP, self._handle_rotate)