From: Didip Kerabat Date: Mon, 17 Jun 2019 15:27:32 +0000 (-0700) Subject: Removed if block X-Git-Tag: 0.12.2~9^2~1^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F552%2Fhead;p=thirdparty%2Fstarlette.git Removed if block --- diff --git a/starlette/requests.py b/starlette/requests.py index b1e0610c..c17a6080 100644 --- a/starlette/requests.py +++ b/starlette/requests.py @@ -34,8 +34,7 @@ class State(object): ) def __delattr__(self, key: typing.Any) -> None: - if hasattr(self, "_state"): - del self._state[key] + del self._state[key] class HTTPConnection(Mapping):