This commit is contained in:
nwalsh1995 2019-10-15 05:40:30 -07:00 committed by Tom Christie
parent a2c7f2f2ba
commit c263b6346a
1 changed files with 2 additions and 2 deletions

View File

@ -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)