mirror of
https://hub.njuu.cf/TheAlgorithms/Python.git
synced 2023-10-11 13:06:12 +08:00
chunk() --> chuncker() to resolve undefined name
flake8 results: ``` ./ciphers/playfair_cipher.py:88:25: F821 undefined name 'chunk' for char1, char2 in chunk(ciphertext, 2): ^ ```
This commit is contained in:
parent
a03b2eafc0
commit
aed9cb16ec
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user