# 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 |