chiark
/
gitweb
/
~cjwatson
/
blog.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8288ff
)
m.htmlsanity: properly use raw string literals.
author
Vladimír Vondruš
<mosra@centrum.cz>
Sun, 10 Dec 2017 23:42:15 +0000
(
00:42
+0100)
committer
Vladimír Vondruš
<mosra@centrum.cz>
Mon, 11 Dec 2017 02:03:32 +0000
(
03:03
+0100)
pelican-plugins/m/htmlsanity.py
patch
|
blob
|
history
diff --git
a/pelican-plugins/m/htmlsanity.py
b/pelican-plugins/m/htmlsanity.py
index 426e9e19e29733b8cd35f0204d452dd22d9c36f4..e2a3cddb4124f30e9d1af06eabae736d9784832d 100644
(file)
--- 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