def check_method_name(name):
 if regex_private.match(name):
  raise AccessError((_('Private methods (such as %s) cannot be called remotely.') % (name,)))

def check_method_name ( name ) : if regex_private . match ( name ) : raise AccessError ( ( _ ( 'Private methods (such as %s) cannot be called remotely.' ) % ( name , ) ) )
raise an accesserror if name is a private method name .