comparison roundup/configuration.py @ 5809:936275dfe1fa

Try to fix: DeprecationWarning: invalid escape sequence \d DeprecationWarning: invalid escape sequence \s DeprecationWarning: invalid escape sequence \) Strings under python 3 are unicode strings rather then "regular" strings as under python 2. So all regexps need to be raw strings. We will see how many I fixed and if I broke any.
author John Rouillard <rouilj@ieee.org>
date Wed, 12 Jun 2019 20:34:47 -0400
parents 765f8c0e99ef
children 1b57d8f3eb97
comparison
equal deleted inserted replaced
5808:bab86c874efb 5809:936275dfe1fa
1130 "Roundup interval."), 1130 "Roundup interval."),
1131 (BooleanOption, "subject_updates_title", "yes", 1131 (BooleanOption, "subject_updates_title", "yes",
1132 "Update issue title if incoming subject of email is different.\n" 1132 "Update issue title if incoming subject of email is different.\n"
1133 "Setting this to \"no\" will ignore the title part of" 1133 "Setting this to \"no\" will ignore the title part of"
1134 " the subject\nof incoming email messages.\n"), 1134 " the subject\nof incoming email messages.\n"),
1135 (RegExpOption, "refwd_re", "(\s*\W?\s*(fw|fwd|re|aw|sv|ang)\W)+", 1135 (RegExpOption, "refwd_re", r"(\s*\W?\s*(fw|fwd|re|aw|sv|ang)\W)+",
1136 "Regular expression matching a single reply or forward\n" 1136 "Regular expression matching a single reply or forward\n"
1137 "prefix prepended by the mailer. This is explicitly\n" 1137 "prefix prepended by the mailer. This is explicitly\n"
1138 "stripped from the subject during parsing."), 1138 "stripped from the subject during parsing."),
1139 (RegExpOption, "origmsg_re", 1139 (RegExpOption, "origmsg_re",
1140 "^[>|\s]*-----\s?Original Message\s?-----$", 1140 r"^[>|\s]*-----\s?Original Message\s?-----$",
1141 "Regular expression matching start of an original message\n" 1141 "Regular expression matching start of an original message\n"
1142 "if quoted the in body."), 1142 "if quoted the in body."),
1143 (RegExpOption, "sign_re", "^[>|\s]*-- ?$", 1143 (RegExpOption, "sign_re", r"^[>|\s]*-- ?$",
1144 "Regular expression matching the start of a signature\n" 1144 "Regular expression matching the start of a signature\n"
1145 "in the message body."), 1145 "in the message body."),
1146 (RegExpOption, "eol_re", r"[\r\n]+", 1146 (RegExpOption, "eol_re", r"[\r\n]+",
1147 "Regular expression matching end of line."), 1147 "Regular expression matching end of line."),
1148 (RegExpOption, "blankline_re", r"[\r\n]+\s*[\r\n]+", 1148 (RegExpOption, "blankline_re", r"[\r\n]+\s*[\r\n]+",

Roundup Issue Tracker: http://roundup-tracker.org/