thirdparty/google_appengine/google/appengine/api/apiproxy_rpc.py
changeset 2413 d0b7dac5325c
parent 2309 be1b94099f2d
child 2864 2e0b0af889be
equal deleted inserted replaced
2412:c61d96e72e6f 2413:d0b7dac5325c
    91     assert self.callback is None or callable(self.callback)
    91     assert self.callback is None or callable(self.callback)
    92     self._MakeCallImpl()
    92     self._MakeCallImpl()
    93 
    93 
    94   def Wait(self):
    94   def Wait(self):
    95     """Waits on the API call associated with this RPC."""
    95     """Waits on the API call associated with this RPC."""
    96     assert self.__state is not RPC.IDLE, ('RPC for %s.%s has not been started' %
       
    97                                           (self.package, self.call))
       
    98     rpc_completed = self._WaitImpl()
    96     rpc_completed = self._WaitImpl()
    99 
    97 
   100     assert rpc_completed, ('RPC for %s.%s was not completed, and no other ' +
    98     assert rpc_completed, ('RPC for %s.%s was not completed, and no other ' +
   101                            'exception was raised ' % (self.package, self.call))
    99                            'exception was raised ' % (self.package, self.call))
   102 
   100