Addresses unicode issues in Python 3

Fixes #79
This commit is contained in:
Manuel Ebert 2013-06-24 12:48:23 +02:00
parent d48a03a00e
commit 20fb701a1a
5 changed files with 10 additions and 8 deletions

View file

@ -15,7 +15,7 @@ class Entry:
def parse_tags(self):
fulltext = " ".join([self.title, self.body]).lower()
tags = re.findall(ur'([{}]\w+)'.format(self.journal.config['tagsymbols']), fulltext, re.UNICODE)
tags = re.findall(r'(?u)([{}]\w+)'.format(self.journal.config['tagsymbols']), fulltext, re.UNICODE)
self.tags = set(tags)
def __unicode__(self):