X-Git-Url: https://wannabe.guru.org/gitweb/?a=blobdiff_plain;f=src%2Fpyutils%2Funscrambler.py;h=17b33edc0d7a6581bb919ca380886801b9ef0034;hb=HEAD;hp=03f3b2e4580ee090899986bd9979f7916b3987ee;hpb=950343d4d49a861701f0308576d7e796a9b7834d;p=pyutils.git diff --git a/src/pyutils/unscrambler.py b/src/pyutils/unscrambler.py index 03f3b2e..17b33ed 100644 --- a/src/pyutils/unscrambler.py +++ b/src/pyutils/unscrambler.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 -# © Copyright 2021-2022, Scott Gasch +# © Copyright 2021-2023, Scott Gasch """A fast (English) word unscrambler.""" @@ -137,7 +137,7 @@ class Unscrambler(object): if indexfile is None: if "unscrambler_default_indexfile" in config.config: indexfile = config.config["unscrambler_default_indexfile"] - assert type(indexfile) == str + assert isinstance(indexfile, str) else: indexfile = "/usr/share/dict/sparse_index" else: