Skip to content

Commit 5d3d105

Browse files
author
Tasuku OKUDA
committed
Avoid to use HttpClient externally due to abstract base class
1 parent d859aba commit 5d3d105

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

linebot/api.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55

66
from .__about__ import __version__
77
from .exceptions import LineBotApiError
8-
from .http_client import (
9-
RequestsHttpClient, HttpClient
10-
)
8+
from .http_client import RequestsHttpClient
119
from .models.error import Error
1210
from .models.profile import Profile
1311

@@ -16,7 +14,7 @@ class LineBotApi(object):
1614
DEFAULT_API_ENDPOINT = 'https://api.line.me'
1715

1816
def __init__(self, channel_access_token, endpoint=DEFAULT_API_ENDPOINT,
19-
timeout=HttpClient.DEFAULT_TIMEOUT, http_client=RequestsHttpClient):
17+
timeout=RequestsHttpClient.DEFAULT_TIMEOUT, http_client=RequestsHttpClient):
2018
"""Constructor of LineBotApi Client
2119
2220
Args:

0 commit comments

Comments
 (0)