diff --git a/pep-0568.rst b/pep-0568.rst index 9fb852023..d7dc3b951 100644 --- a/pep-0568.rst +++ b/pep-0568.rst @@ -48,7 +48,7 @@ onto the ``ChainMap`` while they're running to isolate their context-local changes from their callers, though this can be overridden in cases like ``@contextlib.contextmanager`` where "leaking" context changes from the generator into its caller is -desireable. +desirable. Specification @@ -121,7 +121,7 @@ work with a utility class ``Token``, which can be used to restore a def __init__(self, context, var, old_value): self._context = context self.var = var - self.old_value = old_values + self.old_value = old_value # XX: PEP 567 currently makes this a method on ContextVar, but # I'm going to propose it switch to this API because it's simpler.