Skip to content

Commit aed9cb1

Browse files
author
cclauss
authored
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): ^ ```
1 parent a03b2ea commit aed9cb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ciphers/playfair_cipher.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def decode(ciphertext, key):
8585
plaintext = ""
8686

8787
# https://en.wikipedia.org/wiki/Playfair_cipher#Description
88-
for char1, char2 in chunk(ciphertext, 2):
88+
for char1, char2 in chunker(ciphertext, 2):
8989
row1, col1 = divmod(table.index(char1), 5)
9090
row2, col2 = divmod(table.index(char2), 5)
9191

0 commit comments

Comments
 (0)