'Deprecate C{iterate}, C{crash} and C{stop} on C{reactor}. That is,
each method is wrapped in a function that issues a deprecation
warning, then calls the original.
@param reactor: The Twisted reactor.'

def _deprecateReactor(self, reactor):

    self._reactorMethods = {}
    for name in ['crash', 'iterate', 'stop']:
        self._reactorMethods[name] = getattr(reactor, name)
        setattr(reactor, name, self._makeReactorMethod(name))
