Done challenge 3, added list of solutions
[cipher-tools.git] / cipher.py
index f271120ccefcc7a687edd63964653547199c404c..bc173a75200e5c1a997ec7d792f782633e154ff2 100644 (file)
--- a/cipher.py
+++ b/cipher.py
@@ -516,7 +516,9 @@ def keyword_break_mp(message,
         helper_args = [(message, word, wrap, metric, target_counts, 
                         message_frequency_scaling) 
                        for word in wordlist for wrap in range(3)]
-        breaks = pool.starmap(keyword_break_one, helper_args, chunksize) # Gotcha: the helper function here needs to be defined at the top level (limitation of Pool.starmap)
+        # Gotcha: the helper function here needs to be defined at the top level 
+        #   (limitation of Pool.starmap)
+        breaks = pool.starmap(keyword_break_one, helper_args, chunksize) 
         return min(breaks, key=lambda k: k[1])
 
 def keyword_break_one(message, keyword, wrap_alphabet, metric, target_counts,