diff --git a/eyecite/utils.py b/eyecite/utils.py index 509bc72..c5155eb 100644 --- a/eyecite/utils.py +++ b/eyecite/utils.py @@ -1,10 +1,8 @@ import hashlib import json import re - from lxml import etree - def strip_punct(text: str) -> str: """Strips punctuation from a given string Adapted from nltk Penn Treebank tokenizer @@ -122,7 +120,7 @@ def hash_sha256(dictionary: dict) -> int: """ # Convert the dictionary to a JSON string - json_str: str = json.dumps(dictionary, sort_keys=True,default=str) + json_str: str = json.dumps(dictionary, sort_keys=True, default=str) # Convert the JSON string to bytes json_bytes: bytes = json_str.encode("utf-8")