Better Python2.6 compatibility

This commit is contained in:
Manuel Ebert 2013-07-19 13:03:27 +02:00
parent 13f8e668dc
commit 29005c0e07
3 changed files with 4 additions and 4 deletions

View file

@ -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):