Commit a73e5bfc authored by Bram Schoenmakers's avatar Bram Schoenmakers

Use Unicode literal.

parent c1db7181
......@@ -20,7 +20,7 @@ This module contains the class that represents a single todo item.
from datetime import date
import re
from six import python_2_unicode_compatible
from six import python_2_unicode_compatible, u
from topydo.lib.TodoParser import parse_line
from topydo.lib.Utils import is_valid_priority
......@@ -213,7 +213,7 @@ class TodoBase(object):
self.src = re.sub(
r'^(x \d{4}-\d{2}-\d{2} |\([A-Z]\) )?(\d{4}-\d{2}-\d{2} )?(.*)$',
lambda m: \
"{}{} {}".format(m.group(1) or '', p_date.isoformat(), m.group(3)),
u("{}{} {}").format(m.group(1) or '', p_date.isoformat(), m.group(3)),
self.src)
def creation_date(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment