def wait_ready(package, popen):
 if (package == DATASTORE):
  datastore_wait_ready(popen)
 elif (package == PUBSUB):
  wait_ready_prefix(popen, _PS_READY_LINE_PREFIX)
 elif (package == BIGTABLE):
  wait_ready_prefix(popen, _BT_READY_LINE_PREFIX)
 else:
  raise KeyError('Package not supported', package)

def wait_ready ( package , popen ) : if ( package == DATASTORE ) : datastore_wait_ready ( popen ) elif ( package == PUBSUB ) : wait_ready_prefix ( popen , _PS_READY_LINE_PREFIX ) elif ( package == BIGTABLE ) : wait_ready_prefix ( popen , _BT_READY_LINE_PREFIX ) else : raise KeyError ( 'Package not supported' , package )
wait until the emulator is ready to use .