Skip to content

Commit

Permalink
Use raw string for TEASER_REGEXP to avoid unknown escape warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed May 1, 2018
1 parent 8dc03e1 commit 0d47aaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nikola/post.py
Expand Up @@ -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):
Expand Down

0 comments on commit 0d47aaf

Please sign in to comment.