From 24873651a6ee4af795e0206ab0ffd8d07c99e675 Mon Sep 17 00:00:00 2001 From: taizan-hokuto <55448286+taizan-hokuto@users.noreply.github.com> Date: Thu, 21 Nov 2019 20:47:42 +0900 Subject: [PATCH] Fix comments --- pytchat/core_async/replaychat.py | 2 +- pytchat/core_multithread/replaychat.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/pytchat/core_async/replaychat.py b/pytchat/core_async/replaychat.py index 3db6520..80169d8 100644 --- a/pytchat/core_async/replaychat.py +++ b/pytchat/core_async/replaychat.py @@ -171,7 +171,7 @@ class ReplayChatAsync: #pause await self._pauser.get() #resume - #prohibit from blockng by putting None into _pauser. + #prohibit from blocking by putting None into _pauser. self._pauser.put_nowait(None) livechat_json = (await self._get_livechat_json(continuation, session, headers) diff --git a/pytchat/core_multithread/replaychat.py b/pytchat/core_multithread/replaychat.py index 87686a5..a72cf98 100644 --- a/pytchat/core_multithread/replaychat.py +++ b/pytchat/core_multithread/replaychat.py @@ -165,13 +165,12 @@ class ReplayChat: #pause self._pauser.get() #resume - #prohibit from blockng by putting None into _pauser. + #prohibit from blocking by putting None into _pauser. self._pauser.put_nowait(None) livechat_json = ( self._get_livechat_json(continuation, session, headers) ) metadata, chatdata = self._parser.parse( livechat_json ) - #チャットデータを含むコンポーネントを組み立ててbufferに投入する timeout = metadata['timeoutMs']/1000 chat_component = { "video_id" : self.video_id,