From cc78551e90e689f8f441fd2530b214a032882e78 Mon Sep 17 00:00:00 2001 From: taizan-hokuto <55448286+taizan-hokuto@users.noreply.github.com> Date: Sun, 26 Jan 2020 22:23:21 +0900 Subject: [PATCH] Change function to inline --- pytchat/tool/downloader.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pytchat/tool/downloader.py b/pytchat/tool/downloader.py index db662f4..59360b9 100644 --- a/pytchat/tool/downloader.py +++ b/pytchat/tool/downloader.py @@ -123,16 +123,13 @@ class Downloader: blocks = self.blocks if len(blocks) == 1 : return self - def is_overwrap(a, b): - return (blocks[a].last > blocks[b].first) - ret = [] a = 0 b = 1 jmp = False ret.append(blocks[0]) while a < len(blocks)-2: - while is_overwrap(a,b): + while blocks[a].last > blocks[b].first: b+=1 if b == len(blocks)-1: jmp = True