From: Neil Smith Date: Mon, 7 Oct 2013 12:31:44 +0000 (+0100) Subject: Fixed whitespace typo X-Git-Url: https://git.njae.me.uk/?a=commitdiff_plain;h=5141b041bd618e0339ce04f6abef56665d829b95;hp=fec4faced2cebd32cc97a844ff416bf46441379a;p=cipher-tools.git Fixed whitespace typo --- diff --git a/cipher.py b/cipher.py index 85de0a5..55d99b6 100644 --- a/cipher.py +++ b/cipher.py @@ -110,7 +110,6 @@ def caesar_decipher(message, shift): def caesar_break(message, metric=norms.euclidean_distance, target_frequencies=normalised_english_counts, message_frequency_scaling=norms.normalise): """Breaks a Caesar cipher using frequency analysis - >>> caesar_break('ibxcsyorsaqcheyklxivoexlevmrimwxsfiqevvmihrsasrxliwyrhecjsppsamrkwleppfmergefifvmhixscsymjcsyqeoixlm') (4, 0.3186395289018361) >>> caesar_break('jhzhuhfrqilqhgwrdevwudfwuhdvrqlqjwkhqkdylqjvxemhfwhgwrfulwlflvpwkhhasodqdwlrqrisrzhuwkdwmxulglfdovfl')