Skip to content
Permalink
Browse files
Deal with unicode TODOS.
  • Loading branch information
renpytom committed Jan 13, 2014
1 parent 7376327 commit 7affd8cfbbaf31cdf86c91b40982c53df04f42e2
Showing 1 changed file with 2 additions and 2 deletions.
@@ -255,7 +255,7 @@ init python in project:
except:
continue

m = re.search(r".*#\s*TODO(\s*:\s*|\s+)(.*)", line, re.I)
m = re.search(ur".*#\s*TODO(\s*:\s*|\s+)(.*)", line, re.I)

if m is None:
continue
@@ -267,7 +267,7 @@ init python in project:

while not todo_text or todo_text in todos:
index += 1
todo_text = "{0} ({1})".format(raw_todo_text, index)
todo_text = u"{0} ({1})".format(raw_todo_text, index)

todos[todo_text] = [f, l]

0 comments on commit 7affd8c

Please sign in to comment.