Skip to content
This repository has been archived by the owner on Sep 21, 2019. It is now read-only.

Commit

Permalink
Make title regexps shared in title extension.
Browse files Browse the repository at this point in the history
  • Loading branch information
pdonis committed Aug 16, 2013
1 parent 047b194 commit ed07058
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions simpleblog/extensions/title.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

from plib.stdlib.decotools import cached_property

from simpleblog import extendable_property, newline
from simpleblog import shared_property, extendable_property, newline
from simpleblog.caching import cached
from simpleblog.extensions import BlogExtension, EntryMixin

Expand All @@ -35,7 +35,7 @@ def _do_load(self):
self._titlestr = ""
return raw

@cached_property
@shared_property
def title_rexps(self):
return [(re.compile(r), s) for r, s in [
(r"\*\*([A-Za-z0-9]+)\*\*", "<strong>\g<1></strong>"),
Expand Down

0 comments on commit ed07058

Please sign in to comment.