diff --git a/test/tm-cases/link_patterns.opts b/test/tm-cases/link_patterns.opts index 440d5a6d..346d99f4 100644 --- a/test/tm-cases/link_patterns.opts +++ b/test/tm-cases/link_patterns.opts @@ -1,8 +1,7 @@ {"extras": ["link-patterns"], "link_patterns": [ - (re.compile("recipe\s+(\d+)", re.I), r"http://code.activestate.com/recipes/\1/"), - (re.compile("(?:komodo\s+)?bug\s+(\d+)", re.I), r"http://bugs.activestate.com/show_bug.cgi?id=\1"), - (re.compile("PEP\s+(\d+)", re.I), lambda m: "http://www.python.org/dev/peps/pep-%04d/" % int(m.group(1))), + (re.compile(r"recipe\s+(\d+)", re.I), r"http://code.activestate.com/recipes/\1/"), + (re.compile(r"(?:komodo\s+)?bug\s+(\d+)", re.I), r"http://bugs.activestate.com/show_bug.cgi?id=\1"), + (re.compile(r"PEP\s+(\d+)", re.I), lambda m: "http://www.python.org/dev/peps/pep-%04d/" % int(m.group(1))), ], } - diff --git a/test/tm-cases/link_patterns_double_hit.opts b/test/tm-cases/link_patterns_double_hit.opts index d64982d8..563952fd 100644 --- a/test/tm-cases/link_patterns_double_hit.opts +++ b/test/tm-cases/link_patterns_double_hit.opts @@ -1,7 +1,6 @@ {"extras": ["link-patterns"], "link_patterns": [ (re.compile(r'mozilla\s+bug\s+(\d+)', re.I), r'http://bugzilla.mozilla.org/show_bug.cgi?id=\1'), - (re.compile("(?:komodo\s+)?bug\s+(\d+)", re.I), r"http://bugs.activestate.com/show_bug.cgi?id=\1"), + (re.compile(r"(?:komodo\s+)?bug\s+(\d+)", re.I), r"http://bugs.activestate.com/show_bug.cgi?id=\1"), ], } - diff --git a/test/tm-cases/link_patterns_edge_cases.opts b/test/tm-cases/link_patterns_edge_cases.opts index 35761884..39235f28 100644 --- a/test/tm-cases/link_patterns_edge_cases.opts +++ b/test/tm-cases/link_patterns_edge_cases.opts @@ -1,7 +1,6 @@ {"extras": ["link-patterns"], "link_patterns": [ - (re.compile("Blah\s+(\d+)", re.I), r"http://foo.com/blah_blah_blah/\1"), + (re.compile(r"Blah\s+(\d+)", re.I), r"http://foo.com/blah_blah_blah/\1"), (re.compile("#([1-9][0-9]*)"), r"http://localhost/issue/\1"), ], } - diff --git a/test/tm-cases/link_patterns_escape.opts b/test/tm-cases/link_patterns_escape.opts index 440d5a6d..346d99f4 100644 --- a/test/tm-cases/link_patterns_escape.opts +++ b/test/tm-cases/link_patterns_escape.opts @@ -1,8 +1,7 @@ {"extras": ["link-patterns"], "link_patterns": [ - (re.compile("recipe\s+(\d+)", re.I), r"http://code.activestate.com/recipes/\1/"), - (re.compile("(?:komodo\s+)?bug\s+(\d+)", re.I), r"http://bugs.activestate.com/show_bug.cgi?id=\1"), - (re.compile("PEP\s+(\d+)", re.I), lambda m: "http://www.python.org/dev/peps/pep-%04d/" % int(m.group(1))), + (re.compile(r"recipe\s+(\d+)", re.I), r"http://code.activestate.com/recipes/\1/"), + (re.compile(r"(?:komodo\s+)?bug\s+(\d+)", re.I), r"http://bugs.activestate.com/show_bug.cgi?id=\1"), + (re.compile(r"PEP\s+(\d+)", re.I), lambda m: "http://www.python.org/dev/peps/pep-%04d/" % int(m.group(1))), ], } - diff --git a/test/tm-cases/link_patterns_hash_matching_issue287.opts b/test/tm-cases/link_patterns_hash_matching_issue287.opts index 21062d75..2c8e3b33 100644 --- a/test/tm-cases/link_patterns_hash_matching_issue287.opts +++ b/test/tm-cases/link_patterns_hash_matching_issue287.opts @@ -1,7 +1,7 @@ {"extras": ["link-patterns"], "link_patterns": [ - (re.compile("#(\d+)", re.I), r"https://github.com/pyfa-org/Pyfa/issues/\1"), - (re.compile("@(\w+)", re.I), r"https://github.com/\1"), + (re.compile(r"#(\d+)", re.I), r"https://github.com/pyfa-org/Pyfa/issues/\1"), + (re.compile(r"@(\w+)", re.I), r"https://github.com/\1"), (re.compile("([0-9a-f]{6,40})", re.I), r"https://github.com/pyfa-org/Pyfa/commit/\1") ] } diff --git a/test/tm-cases/link_patterns_markdown_syntax.opts b/test/tm-cases/link_patterns_markdown_syntax.opts index f33b27ee..2c8a9047 100644 --- a/test/tm-cases/link_patterns_markdown_syntax.opts +++ b/test/tm-cases/link_patterns_markdown_syntax.opts @@ -1,5 +1,5 @@ {"extras": ["link-patterns"], "link_patterns": [ - (re.compile("recipe\s+(\d+)", re.I), r"http://code.activestate.com/recipes/\1/"), + (re.compile(r"recipe\s+(\d+)", re.I), r"http://code.activestate.com/recipes/\1/"), ], -} \ No newline at end of file +}