From d885406da54367bb888ad7b5c8f17c9bffd46233 Mon Sep 17 00:00:00 2001 From: Pavel Kirilin <win10@list.ru> Date: Sun, 19 Jul 2020 19:52:54 +0400 Subject: [PATCH] Updated rotor. Signed-off-by: Pavel Kirilin <win10@list.ru> --- src/utils/str_helpers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/str_helpers.py b/src/utils/str_helpers.py index 2da5106..caf7492 100644 --- a/src/utils/str_helpers.py +++ b/src/utils/str_helpers.py @@ -10,13 +10,13 @@ class Rotor: def __init__(self, original, start): self.original = original self.start = start - self.rotation = original + " " + self.rotation = original @property def next_rotation(self): first = self.rotation[0] self.rotation = self.rotation[1:] + first - return self.rotation[:-1] + return self.rotation def replace_by_index(base, replacement, index): -- GitLab