def walk_service_files(b, manager, servicename, **kwargs):
    """
    Walk a service's file dependencies and execute callbacks.

    * `service_file(manager, servicename, pathname):`
      Executed when a file service dependency is enumerated.
    """
    deps = b.get('services', {}).get(manager, {}).get(servicename, {})
    if 'files' not in deps:
        return
    callable = kwargs.get('service_file', lambda *args: None)
    for pathname in list(deps['files']):
        callable(manager, servicename, pathname)
dataset/ETHPy150Open devstructure/blueprint/blueprint/walk.py/walk_service_files/original