From 345f494c0f53ab681de5fb38f3d4d4e8af848c96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Doma=C5=84ski?= Date: Sat, 3 Dec 2022 16:06:06 +0100 Subject: [PATCH] bump, punctuation was overrided --- fasttyper/runner.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fasttyper/runner.py b/fasttyper/runner.py index f8b89dc..2a8eca7 100644 --- a/fasttyper/runner.py +++ b/fasttyper/runner.py @@ -55,8 +55,8 @@ def generate_text( word = word.capitalize() if punctuation_factor and punctuation_factor / 100 > random(): - punctuation = choice(punctuation) - word = "".join((word, punctuation)) + chosen_punctuation = choice(punctuation) + word = "".join((word, chosen_punctuation)) new_sentence = word[-1] in sentence_ending chosen_words.append(word)