def simulate(self):
        if self._simtag is not None:
            gobject.source_remove(self._simtag)
        self.runUntilCurrent()
        timeout = min(self.timeout(), 0.1)
        if timeout is None:
            timeout = 0.1
        # grumble
        self._simtag = gobject.timeout_add(int(timeout * 1010), self.simulate)
Refactor the methods section to sphinx friendly format.
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/internet/gtk2reactor.py/Gtk2Reactor.simulate--crossover with--dataset/ETHPy150Open enthought/traits/docs/source/_extensions/refactordoc/class_doc.py/ClassDoc._refactor_methods