

@contextlib.contextmanager
def in_scope(self, scope):
    old_scope = self.resolution_scope
    self.resolution_scope = urljoin(old_scope, scope)
    try:
        (yield)
    finally:
        self.resolution_scope = old_scope

dataset/ETHPy150Open danielyule/hearthbreaker/jsonschema/validators.py RefResolver.in_scope/original