Skip to content
Myr

Drop redundant hasattr check (#1193)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Tom Christie · committed by GitHub · parent cb620e6 · Browse files · 1 file+2 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−4 removed

  • other:+2 added−4 removed

1 file+2 added−4 removed

modified:httpx/_models.py+2 added-4 removed
954 unmodified lines
955 """956 if not self.is_closed:957 self.is_closed = True958 self._elapsed = self.request.timer.elapsed959 if hasattr(self, "_raw_stream"):960 self._raw_stream.close()959 self._raw_stream.close()960961 async def aread(self) -> bytes:962 """963 Read and return the response content.
66 unmodified lines
1030 """1031 if not self.is_closed:1032 self.is_closed = True1033 self._elapsed = self.request.timer.elapsed1035 if hasattr(self, "_raw_stream"):1036 await self._raw_stream.aclose()1034 await self._raw_stream.aclose()103510361037class Cookies(MutableMapping):1038 """
173 unmodified lines