Adds a __repr__ to graph.
[pyutils.git] / src / pyutils / unscrambler.py
index 03f3b2e4580ee090899986bd9979f7916b3987ee..17b33edc0d7a6581bb919ca380886801b9ef0034 100644 (file)
@@ -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: