From 6f48b8dd53e2201dbfdfbf984a987f0b0e6ae54a Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 16 Jan 2018 14:39:42 -0800 Subject: [PATCH] Fix typos. --- pep-0568.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.