Skip to content
Permalink
Browse files
Use raw string for TEASER_REGEXP to avoid unknown escape warnings
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed May 1, 2018
1 parent 8dc03e1 commit 0d47aaf7ea042ed2709abde9f8ee5c1e604861f9
Showing with 1 addition and 1 deletion.
  1. +1 −1 nikola/post.py
@@ -78,7 +78,7 @@

__all__ = ('Post',)

TEASER_REGEXP = re.compile('<!--\s*(TEASER_END|END_TEASER)(:(.+))?\s*-->', re.IGNORECASE)
TEASER_REGEXP = re.compile(r'<!--\s*(TEASER_END|END_TEASER)(:(.+))?\s*-->', re.IGNORECASE)


class Post(object):

0 comments on commit 0d47aaf

Please sign in to comment.