def _wait_for_consistency(checker):
 for _ in xrange(EVENTUAL_CONSISTENCY_MAX_SLEEPS):
  if checker():
   return
  time.sleep(EVENTUAL_CONSISTENCY_SLEEP_INTERVAL)
 logger.warning('Exceeded wait for eventual GCS consistency - this may be abug in the library or something is terribly wrong.')

def _wait_for_consistency ( checker ) : for _ in xrange ( EVENTUAL_CONSISTENCY_MAX_SLEEPS ) : if checker ( ) : return time . sleep ( EVENTUAL_CONSISTENCY_SLEEP_INTERVAL ) logger . warning ( 'Exceeded wait for eventual GCS consistency - this may be abug in the library or something is terribly wrong.' )
eventual consistency: wait until gcs reports something is true .