def _find_mapreduce_yaml(start, checked):
  dir = start
  while dir not in checked:
    checked.add(dir)
    for mr_yaml_name in MR_YAML_NAMES:
      yaml_path = os.path.join(dir, mr_yaml_name)
      if os.path.exists(yaml_path):
        return yaml_path
    dir = os.path.dirname(dir)
  return None
Middleware should do nothing if the profile has no language field
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/ext/mapreduce/status.py/_find_mapreduce_yaml--crossover with--dataset/ETHPy150Open clione/django-kanban/src/core/userena/tests/middleware.py/UserenaLocaleMiddlewareTests.test_without_language_field