-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2801 from vkrizan/fix-raw-strings
Fix SyntaxWarning: invalid escape sequence
- Loading branch information
Showing
4 changed files
with
13 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -287,7 +287,7 @@ def assertResults(regex, search_string, values): | |
'foo 123 45 bar 678 nuggie 9.0', | ||
['123', '45', '678', '9', '0']) | ||
assertResults( | ||
'[\w]+@[\w]+\.[\w]{2,3}', | ||
r'[\w]+@[\w]+\.[\w]{2,3}', | ||
('Dear [email protected], this is [email protected]. I am writing on ' | ||
'behalf of [email protected]. He dislikes your blog.'), | ||
['[email protected]', '[email protected]', '[email protected]']) | ||
|
@@ -314,7 +314,7 @@ def test_regex_tbl(self): | |
messages) | ||
cur = self.execute('select posts.id, regex_search.rowid, regex_search.match ' | ||
'FROM posts, regex_search(?, posts.msg)', | ||
('[\w]+@[\w]+\.\w{2,3}',)) | ||
(r'[\w]+@[\w]+\.\w{2,3}',)) | ||
results = cur.fetchall() | ||
self.assertEqual(results, [ | ||
(1, 1, '[email protected]'), | ||
|