'Clean-up hook for fixing potentially global state.  Only for testing of
this module itself.  If you want less global state, use the new
warnings system in L{twisted.logger}.'

def _stopLogging(self):

    if (self._warningsModule.showwarning == self.showwarning):
        self._warningsModule.showwarning = self._oldshowwarning
