From 6ec3fb47d1f1fa0d46aa48eadfa53229f4123c12 Mon Sep 17 00:00:00 2001 From: pictuga Date: Mon, 15 Nov 2021 21:54:07 +0100 Subject: [PATCH] readabilite: .strip() first to save time --- morss/readabilite.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/morss/readabilite.py b/morss/readabilite.py index 4ea17cb..8cc5d53 100644 --- a/morss/readabilite.py +++ b/morss/readabilite.py @@ -44,6 +44,8 @@ def count_words(string): if string is None: return 0 + string = string.strip() + i = 0 count = 0