From 55e72977a7a2f0d1b7b7a177f0f863a2f3d88e05 Mon Sep 17 00:00:00 2001 From: Robyn Speer Date: Tue, 16 Jul 2019 17:27:14 -0400 Subject: [PATCH] fix a deprecation warning by using raw strings --- wordfreq/preprocess.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wordfreq/preprocess.py b/wordfreq/preprocess.py index 0666d84..1563212 100644 --- a/wordfreq/preprocess.py +++ b/wordfreq/preprocess.py @@ -6,8 +6,8 @@ from .transliterate import transliterate MARK_RE = regex.compile(r'[\p{Mn}\N{ARABIC TATWEEL}]', regex.V1) -DIGIT_RE = regex.compile('\d') -MULTI_DIGIT_RE = regex.compile('\d[\d.,]+') +DIGIT_RE = regex.compile(r'\d') +MULTI_DIGIT_RE = regex.compile(r'\d[\d.,]+') def preprocess_text(text, language):