From 4fe7d3d8b515cc66e805c93245e723bca36f3fb7 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sat, 7 Oct 2023 14:23:39 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- hashes/enigma_machine.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/hashes/enigma_machine.py b/hashes/enigma_machine.py index 7c68ecf24..3bc432491 100644 --- a/hashes/enigma_machine.py +++ b/hashes/enigma_machine.py @@ -1,7 +1,7 @@ """ Note: - This algorithm has memory persistance. + This algorithm has memory persistance. So multiple runs on the same runtime will carry junk and scramble the result! """ @@ -55,7 +55,7 @@ def encode_or_decode(message, token): (['/', '0', "'", '%', ' '], 3) """ - + for _ in range(token): rotator() for j in message: @@ -84,6 +84,5 @@ def menu(): if __name__ == "__main__": import doctest - - doctest.testmod() + doctest.testmod()