@classmethod
  def pex_hash(cls, d):
    names = sorted(f for f in cls._iter_files(d) if not (f.endswith('.pyc') or f.startswith('.')))
    def stream_factory(name):
      return open(os.path.join(d, name), 'rb')  # noqa: T802
    return cls._compute_hash(names, stream_factory)
Flush all deletes to datastore.
dataset/ETHPy150Open pantsbuild/pex/pex/util.py/CacheHelper.pex_hash--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/appengine-mapreduce/python/src/mapreduce/context.py/_MutationPool._flush_ndb_deletes