Fixed the merge conflict
[cipher-training.git] / cipher.py
index 4ec333f2f68c1cbd511535904be9b805736d1b3d..11bdde67916ca1303a1c6ce6d1318001d5233061 100644 (file)
--- a/cipher.py
+++ b/cipher.py
@@ -1,16 +1,9 @@
 import string
 import collections
-import logging
 import math
 from itertools import zip_longest, cycle, chain
 from language_models import *
 
-logger = logging.getLogger(__name__)
-logger.addHandler(logging.FileHandler('cipher.log'))
-logger.setLevel(logging.WARNING)
-#logger.setLevel(logging.INFO)
-#logger.setLevel(logging.DEBUG)
-
 
 modular_division_table = [[0]*26 for _ in range(26)]
 for a in range(26):
@@ -170,6 +163,8 @@ def caesar_decipher(message, shift):
     'abc'
     >>> caesar_decipher('cd ez ab', 2)
     'ab cx yz'
+    >>> caesar_decipher('Jgnnq Yqtnf!', 2)
+    'Hello World!'
     """
     return caesar_encipher(message, -shift)