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 <tim.gates@iress.com>
This commit is contained in:
Tim Gates
2022-07-31 09:24:48 +10:00
parent 026c4e5217
commit 3375831c22
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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()