Skip to content

Commit 09a6e1c

Browse files
committed
Update elf.py
1 parent 0cc859c commit 09a6e1c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

hashes/elf.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
def elf_hash(data):
1+
def elf_hash(data: str):
22
"""
33
Implementation of ElfHash Algorithm, a variant of PJW hash function.
44
@@ -16,8 +16,7 @@ def elf_hash(data):
1616
hash &= ~x
1717
return hash
1818

19-
2019
if __name__ == "__main__":
2120
import doctest
2221

23-
doctest.testmod()
22+
doctest.testmod()

0 commit comments

Comments
 (0)