From: Vladimír Vondruš Date: Sun, 10 Dec 2017 23:42:15 +0000 (+0100) Subject: m.htmlsanity: properly use raw string literals. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=fdf3ebbb662dc4cc11dfcaf38e3e3c0157290232;p=blog.git m.htmlsanity: properly use raw string literals. --- 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