From 05e1c908a5411552e2c52944712849f66284c0b2 Mon Sep 17 00:00:00 2001 From: taizan-hokuto <55448286+taizan-hokuto@users.noreply.github.com> Date: Sat, 22 Feb 2020 17:21:01 +0900 Subject: [PATCH] Use generator comprehension --- pytchat/tool/download/downloader.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pytchat/tool/download/downloader.py b/pytchat/tool/download/downloader.py index 23a4fad..15ab152 100644 --- a/pytchat/tool/download/downloader.py +++ b/pytchat/tool/download/downloader.py @@ -81,8 +81,8 @@ def download(video_id, div = 1, callback = None, processor = None): if processor is None: return data return processor.process( - [{'video_id':None,'timeout':1,'chatdata' : [action - ["replayChatItemAction"]["actions"][0] for action in data]}] + [{'video_id':None,'timeout':1,'chatdata' : (action + ["replayChatItemAction"]["actions"][0] for action in data)}] ) def cancel():