Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c360329

Browse files
committed
Removed erroneous return in __init__.
1 parent 981fa64 commit c360329

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

text.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,8 +330,6 @@ def __init__(self, training_text, ciphertext=None):
330330
self.Pwords = UnigramTextModel(words(training_text))
331331
self.P1 = UnigramTextModel(training_text) # By letter
332332
self.P2 = NgramTextModel(2, training_text) # By letter pair
333-
if ciphertext:
334-
return self.decode(ciphertext)
335333

336334
def decode(self, ciphertext):
337335
"Search for a decoding of the ciphertext."

0 commit comments

Comments
 (0)