From fdf3ebbb662dc4cc11dfcaf38e3e3c0157290232 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Mon, 11 Dec 2017 00:42:15 +0100 Subject: [PATCH] m.htmlsanity: properly use raw string literals. --- pelican-plugins/m/htmlsanity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pelican-plugins/m/htmlsanity.py b/pelican-plugins/m/htmlsanity.py index 426e9e19..e2a3cddb 100644 --- a/pelican-plugins/m/htmlsanity.py +++ b/pelican-plugins/m/htmlsanity.py @@ -48,7 +48,7 @@ except ImportError: pyphen = None settings = {} -words_re = re.compile("""\w+""", re.UNICODE|re.X) +words_re = re.compile(r'\w+', re.UNICODE|re.X) # TODO: remove when 3.8 with https://github.com/getpelican/pelican/pull/2256 # is released -- 2.30.2