#NEWLINE# def removeService( self , service ) : #NEWLINE# #INDENT# if self . name : #NEWLINE# #INDENT# del self . namedServices [ service . name ] #NEWLINE# #UNINDENT# self . services . remove ( service ) #NEWLINE# if self . running : #NEWLINE# #INDENT# return service . stopService ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return None