chiark / gitweb /
m.htmlsanity: properly use raw string literals.
authorVladimír Vondruš <mosra@centrum.cz>
Sun, 10 Dec 2017 23:42:15 +0000 (00:42 +0100)
committerVladimír Vondruš <mosra@centrum.cz>
Mon, 11 Dec 2017 02:03:32 +0000 (03:03 +0100)
pelican-plugins/m/htmlsanity.py

index 426e9e19e29733b8cd35f0204d452dd22d9c36f4..e2a3cddb4124f30e9d1af06eabae736d9784832d 100644 (file)
@@ -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