From c85e128efc973420b86d7ccf550d39907466f5e1 Mon Sep 17 00:00:00 2001 From: Martin Czygan Date: Tue, 10 Nov 2020 17:55:58 +0100 Subject: python 3 has ascii_letters --- fuzzycat/cluster.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fuzzycat/cluster.py b/fuzzycat/cluster.py index 4ccf8a9..fc922c8 100644 --- a/fuzzycat/cluster.py +++ b/fuzzycat/cluster.py @@ -53,7 +53,7 @@ class KeyDoc(BaseModel): get_ident_title = operator.itemgetter("ident", "title") ws_replacer = str.maketrans({"\t": " ", "\n": " "}) non_word_re = re.compile(r'[\W_]+', re.UNICODE) -printable_no_punct = string.digits + string.letters + string.whitespace +printable_no_punct = string.digits + string.ascii_letters + string.whitespace def slugify_string(s: str) -> str: -- cgit v1.2.3