From 62b13e5356eacbee143f83403da454a9e1d07ccc Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Tue, 27 Feb 2018 07:49:05 -0500 Subject: [PATCH] backwards compatibility Signed-off-by: Kenneth Reitz --- requests_html.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/requests_html.py b/requests_html.py index 15ad074..a559344 100644 --- a/requests_html.py +++ b/requests_html.py @@ -239,7 +239,7 @@ def user_agent(style=None): return useragent[style] -class Session(requests.Session): +class HTMLSession(requests.Session): """A consumable session, for cookie persistience and connection pooling, amongst other things. """ @@ -271,7 +271,7 @@ class Session(requests.Session): return html_r -class BrowserSession(Session): +class BrowserHTMLSession(Session): """A web-browser interpreted session (for JavaScript).""" def __init__(self, *args, **kwargs): @@ -318,4 +318,6 @@ class BrowserSession(Session): # Backwards compatiblity. -session = Session() \ No newline at end of file +session = HTMLSession() +Session = HTMLSession +BroserSession = BrowserHTMLSession \ No newline at end of file