Fix typos.

This commit is contained in:
Guido van Rossum 2018-01-16 14:39:42 -08:00
parent 2885e7572d
commit 6f48b8dd53
1 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ onto the ``ChainMap`` while they're running to isolate their
context-local changes from their callers, though this can be context-local changes from their callers, though this can be
overridden in cases like ``@contextlib.contextmanager`` where overridden in cases like ``@contextlib.contextmanager`` where
"leaking" context changes from the generator into its caller is "leaking" context changes from the generator into its caller is
desireable. desirable.
Specification 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): def __init__(self, context, var, old_value):
self._context = context self._context = context
self.var = var self.var = var
self.old_value = old_values self.old_value = old_value
# XX: PEP 567 currently makes this a method on ContextVar, but # 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. # I'm going to propose it switch to this API because it's simpler.