From 347707a5144e990f540d69fd11f1138074dbb42d Mon Sep 17 00:00:00 2001 From: taizan-hokuto <55448286+taizan-hokuto@users.noreply.github.com> Date: Thu, 2 Jan 2020 20:08:45 +0900 Subject: [PATCH] Delete unnecessary lines --- pytchat/core_async/livechat.py | 1 - pytchat/parser/live.py | 2 -- 2 files changed, 3 deletions(-) diff --git a/pytchat/core_async/livechat.py b/pytchat/core_async/livechat.py index 1eb7269..09e3c5f 100644 --- a/pytchat/core_async/livechat.py +++ b/pytchat/core_async/livechat.py @@ -218,7 +218,6 @@ class LiveChatAsync: async with session.get(url ,headers = headers) as resp: try: text = await resp.text() - status_code = resp.status livechat_json = json.loads(text) break except (ClientConnectorError,json.JSONDecodeError) : diff --git a/pytchat/parser/live.py b/pytchat/parser/live.py index 0207ac8..f362be9 100644 --- a/pytchat/parser/live.py +++ b/pytchat/parser/live.py @@ -16,8 +16,6 @@ logger = config.logger(__name__) from .. import util class Parser: - URL_LIVE = "live_chat/get_live_chat?continuation=" - URL_REPLAY = "live_chat_replay/get_live_chat_replay?continuation=" def __init__(self): self.mode = 'LIVE'