diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2022-09-27 08:42:07 +0200 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2022-09-27 08:42:07 +0200 |
commit | 8fa3b6378d5abe931072f68879350a44b72593b1 (patch) | |
tree | 6e3bcab4f8a920256fb0f240d226ec6e2d8686e7 | |
parent | 207d4a8d686bb3833339d0ec4e58852c2c4493b4 (diff) | |
download | mendeleev-8fa3b6378d5abe931072f68879350a44b72593b1.tar.gz |
Python: use bytes
-rw-r--r-- | mendeleev.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mendeleev.py b/mendeleev.py index b026ab1..4518ca8 100644 --- a/mendeleev.py +++ b/mendeleev.py @@ -16,7 +16,7 @@ ELEMENTS = [ ] # fmt: on -elements = [el.lower() for el in ELEMENTS] +elements = [el.lower().encode() for el in ELEMENTS] def search(start, length, shift, char): @@ -75,7 +75,7 @@ def advance(els, tail): def explode(word): - result = [([], word.lower())] + result = [([], word.lower().encode())] while True: new = [] tail = None |