#NEWLINE# def _get_dispatch_method( self , pid , method ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# return getattr ( self . _processes [ pid ] , method ) #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# raise self . InvalidProcess ( ( 'Unknown process %s' % pid ) ) #NEWLINE# #UNINDENT# except AttributeError : #NEWLINE# #INDENT# raise self . InvalidMethod ( ( 'Unknown method %s on %s' % ( method , self ) ) )