Trees | Indices | Help |
|
---|
|
1 # This file is part of Buildbot. Buildbot is free software: you can 2 # redistribute it and/or modify it under the terms of the GNU General Public 3 # License as published by the Free Software Foundation, version 2. 4 # 5 # This program is distributed in the hope that it will be useful, but WITHOUT 6 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 7 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 8 # details. 9 # 10 # You should have received a copy of the GNU General Public License along with 11 # this program; if not, write to the Free Software Foundation, Inc., 51 12 # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 13 # 14 # Copyright Buildbot Team Members 15 1618 """ 19 Patch startService and stopService so that they check the previous state 20 first. 21 22 (used for debugging only) 23 """ 24 from twisted.application.service import Service 25 old_startService = Service.startService 26 old_stopService = Service.stopService 27 def startService(self): 28 assert not self.running 29 return old_startService(self)30 def stopService(self): 31 assert self.running 32 return old_stopService(self) 33 Service.startService = startService 34 Service.stopService = stopService 35
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Nov 21 16:23:03 2012 | http://epydoc.sourceforge.net |