Merge pull request #221 from cclauss/patch-4

chunk() --> chunker() to resolve an undefined name
This commit is contained in:
Harshil 2017-12-14 09:56:53 +05:30 committed by GitHub
commit a251e9fbe7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,7 +85,7 @@ def decode(ciphertext, key):
plaintext = ""
# https://en.wikipedia.org/wiki/Playfair_cipher#Description
for char1, char2 in chunk(ciphertext, 2):
for char1, char2 in chunker(ciphertext, 2):
row1, col1 = divmod(table.index(char1), 5)
row2, col2 = divmod(table.index(char2), 5)