PEP 567: typo in pseudocode of ContextVar.reset (#1262)

This commit is contained in:
Carl Friedrich Bolz-Tereick 2019-12-23 20:19:34 +01:00 committed by Guido van Rossum
parent 33b62136d8
commit f76fa9f5bf
1 changed files with 3 additions and 3 deletions

View File

@ -496,10 +496,10 @@ directly::
"Token was created in a different Context")
if token._old_value is Token.MISSING:
ts.context._data = data.delete(token._var)
ts.context._data = ts.context._data.delete(token._var)
else:
ts.context._data = data.set(token._var,
token._old_value)
ts.context._data = ts.context._data.set(token._var,
token._old_value)
token._used = True