mirror of
https://github.com/kennethreitz/requests-html.git
synced 2026-06-05 14:50:20 +00:00
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:
+1
-1
@@ -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)
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user