Skip to content

Commit

Permalink
chunk() --> chuncker() to resolve undefined name
Browse files Browse the repository at this point in the history
flake8 results:
```
./ciphers/playfair_cipher.py:88:25: F821 undefined name 'chunk'
    for char1, char2 in chunk(ciphertext, 2):
                        ^
```
  • Loading branch information
cclauss authored Nov 25, 2017
1 parent a03b2ea commit aed9cb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ciphers/playfair_cipher.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit aed9cb1

Please sign in to comment.