1
0
Fork 0
mirror of https://github.com/topydo/topydo.git synced 2024-05-20 13:58:33 +00:00

Some more escape deprecation fixes

This commit is contained in:
David Steele 2020-03-05 10:31:48 -05:00
parent bafbe2ed6b
commit e7ffc32168
3 changed files with 3 additions and 3 deletions

View file

@ -215,7 +215,7 @@ class ListCommand(ExpressionCommand):
[-i <NUMBER 1>[,<NUMBER 2> ...]] [-N | -n <INTEGER>] [EXPRESSION]"""
def help(self):
return """\
return r"""\
Lists all relevant todos. A todo is relevant when:
* has not been completed yet,

View file

@ -60,7 +60,7 @@ def progress_color(p_todo):
if does_recur and due_date and not start_date:
# add negation, offset is based on due date
recurrence_pattern = p_todo.tag_value('rec')
neg_recurrence_pattern = re.sub('^\+?', '-', recurrence_pattern)
neg_recurrence_pattern = re.sub(r'^\+?', '-', recurrence_pattern)
start = relative_date_to_date(neg_recurrence_pattern, due_date)
result = diff_days(start, due_date)

View file

@ -98,7 +98,7 @@ class TodoListBase(object):
if config().identifiers() != 'text':
try:
if re.match('[1-9]\d*', p_identifier):
if re.match(r'[1-9]\d*', p_identifier):
# the expression is a string and no leading zeroes,
# treat it as an integer
raise TypeError