From 3375831c2273adbc503534b36b25f4fdef127026 Mon Sep 17 00:00:00 2001 From: Tim Gates Date: Sun, 31 Jul 2022 09:24:48 +1000 Subject: [PATCH] docs: Fix a few typos There are small typos in: - requests_html.py - tests/test_requests_html.py Fixes: - Should read `instances` rather than `instaces`. - Should read `encoding` rather than `enconding`. Signed-off-by: Tim Gates --- requests_html.py | 2 +- tests/test_requests_html.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/requests_html.py b/requests_html.py index 48e7fb2..03f0edf 100644 --- a/requests_html.py +++ b/requests_html.py @@ -771,7 +771,7 @@ class BaseSession(requests.Session): def response_hook(self, response, **kwargs) -> HTMLResponse: - """ Change response enconding and replace it by a HTMLResponse. """ + """ Change response encoding and replace it by a HTMLResponse. """ if not response.encoding: response.encoding = DEFAULT_ENCODING return HTMLResponse._from_response(response, self) diff --git a/tests/test_requests_html.py b/tests/test_requests_html.py index 7708560..28bb553 100644 --- a/tests/test_requests_html.py +++ b/tests/test_requests_html.py @@ -290,7 +290,7 @@ async def test_bare_js_async_eval(): def test_browser_session(): - """ Test browser instaces is created and properly close when session is closed. + """ Test browser instances is created and properly close when session is closed. Note: session.close method need to be tested together with browser creation, since no doing that will left the browser running. """ session = HTMLSession()