PEP 567: typo in pseudocode of ContextVar.reset (#1262)
This commit is contained in:
parent
33b62136d8
commit
f76fa9f5bf
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue