mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-06-28 21:46:13 +02:00
Better Python2.6 compatibility
This commit is contained in:
parent
13f8e668dc
commit
29005c0e07
3 changed files with 4 additions and 4 deletions
|
@ -15,7 +15,7 @@ class Entry:
|
|||
|
||||
def parse_tags(self):
|
||||
fulltext = " ".join([self.title, self.body]).lower()
|
||||
tags = re.findall(r'(?u)([{}]\w+)'.format(self.journal.config['tagsymbols']), fulltext, re.UNICODE)
|
||||
tags = re.findall(r'(?u)([{tags}]\w+)'.format(tags=self.journal.config['tagsymbols']), fulltext, re.UNICODE)
|
||||
return set(tags)
|
||||
|
||||
def __unicode__(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue