From 418f58ab04d786cb189b1419b0de95b0fc9e9667 Mon Sep 17 00:00:00 2001 From: d9pouces Date: Tue, 25 Jul 2017 08:31:29 +0200 Subject: fix DeprecationWarning: invalid escape sequence --- markdown/blockprocessors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/markdown/blockprocessors.py b/markdown/blockprocessors.py index a3ed977..79c7f2e 100644 --- a/markdown/blockprocessors.py +++ b/markdown/blockprocessors.py @@ -391,7 +391,7 @@ class OListProcessor(BlockProcessor): # Check first item for the start index if not items and self.TAG == 'ol': # Detect the integer value of first list item - INTEGER_RE = re.compile('(\d+)') + INTEGER_RE = re.compile(r'(\d+)') self.STARTSWITH = INTEGER_RE.match(m.group(1)).group() # Append to the list items.append(m.group(3)) -- cgit v1.2.3