From 71fb8cfd0c3c32f65655dd1763a8df1b9d598835 Mon Sep 17 00:00:00 2001 From: Dmytro Yeroshkin Date: Fri, 22 Oct 2021 10:36:11 +0200 Subject: [PATCH] removed lines that did nothing --- novel_stats/novel_stats.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/novel_stats/novel_stats.py b/novel_stats/novel_stats.py index 3bc1034..86a7f61 100755 --- a/novel_stats/novel_stats.py +++ b/novel_stats/novel_stats.py @@ -2,8 +2,6 @@ import collections -import os -import string import sys @@ -45,8 +43,6 @@ def main(): chapter_number = int(line[len(CHAPTER_MARKER):]) word_count_by_chapter[chapter_number] = 1 # Start at one, because the chapter number itself counts as a word. - if chapter_number in status_by_chapter: - word_count_by_status[chapter_status] += 1 elif line.startswith(STATUS_MARKER): status_by_chapter[chapter_number] = line[len(STATUS_MARKER):].strip('()\n') elif line.startswith(ACT_MARKER):