def hydrate_bundles(bundles_field, files_digest_list, excluded_files_list):
 bundles = []
 zipped = zip(bundles_field.bundles, bundles_field.filespecs_list, files_digest_list, excluded_files_list)
 for (bundle, filespecs, files_digest, excluded_files) in zipped:
  spec_path = bundles_field.address.spec_path
  kwargs = bundle.kwargs()
  kwargs[u'fileset'] = _eager_fileset_with_spec(getattr(bundle, u'rel_path', spec_path), filespecs, files_digest, excluded_files)
  bundles.append(BundleAdaptor(**kwargs))
 return HydratedField(u'bundles', bundles)

def hydrate_bundles ( bundles_field , files_digest_list , excluded_files_list ) : bundles = [ ] zipped = zip ( bundles_field . bundles , bundles_field . filespecs_list , files_digest_list , excluded_files_list ) for ( bundle , filespecs , files_digest , excluded_files ) in zipped : spec_path = bundles_field . address . spec_path kwargs = bundle . kwargs ( ) kwargs [ u'fileset' ] = _eager_fileset_with_spec ( getattr ( bundle , u'rel_path' , spec_path ) , filespecs , files_digest , excluded_files ) bundles . append ( BundleAdaptor ( ** kwargs ) ) return HydratedField ( u'bundles' , bundles )
given a bundlesfield and filesdigest for each of its filesets create a list of bundleadaptors .