blob: 6a7be174801388f4c34751400a612b70f6972a62 [file] [log] [blame]
# Copyright 2021 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from contextlib import contextmanager
from recipe_engine import recipe_api
class NullContextApi(recipe_api.RecipeApi):
@contextmanager
def __call__(self):
"""Context that mimics contextlib.nullcontext in python3."""
yield None