mirror of https://github.com/encode/starlette.git
fix typo (#621)
This commit is contained in:
parent
a2c7f2f2ba
commit
c263b6346a
|
@ -23,14 +23,14 @@ class Environ(MutableMapping):
|
|||
def __setitem__(self, key: typing.Any, value: typing.Any) -> None:
|
||||
if key in self._has_been_read:
|
||||
raise EnvironError(
|
||||
f"Attempting to set environ['{key}'], but the value has already be read."
|
||||
f"Attempting to set environ['{key}'], but the value has already been read."
|
||||
)
|
||||
self._environ.__setitem__(key, value)
|
||||
|
||||
def __delitem__(self, key: typing.Any) -> None:
|
||||
if key in self._has_been_read:
|
||||
raise EnvironError(
|
||||
f"Attempting to delete environ['{key}'], but the value has already be read."
|
||||
f"Attempting to delete environ['{key}'], but the value has already been read."
|
||||
)
|
||||
self._environ.__delitem__(key)
|
||||
|
||||
|
|
Loading…
Reference in New Issue