def __exit__(self, *exc_info):
        if not self._entered:
            raise RuntimeError(self % "Cannot exit %r without entering first")
        self._module.filters = self._filters
        self._module.showwarning = self._showwarning
        self.log[:] = []
        clean_warning_registry()  # be safe and not propagate state + chaos
dataset/ETHPy150Open trevorstephens/gplearn/gplearn/skutils/testing.py/_IgnoreWarnings.__exit__/swapped operands of `%`