diff options
author | Leonard Richardson <leonardr@segfault.org> | 2018-07-14 14:15:29 -0400 |
---|---|---|
committer | Leonard Richardson <leonardr@segfault.org> | 2018-07-14 14:15:29 -0400 |
commit | 877965b09216b2d6f9f99592d7b425c7b7a19108 (patch) | |
tree | 08998e2082d9dd9110ca850acf3ae0f5d74dfc5f /bs4/tests/test_tree.py | |
parent | 7d22fe1941c4a6ef4eb2e234c85db175d3b3f812 (diff) |
Fixed code that was causing deprecation warnings in recent Python 3
versions. Includes a patch from Ville Skyttä. [bug=1778909] [bug=1689496]
Diffstat (limited to 'bs4/tests/test_tree.py')
-rw-r--r-- | bs4/tests/test_tree.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bs4/tests/test_tree.py b/bs4/tests/test_tree.py index c0e7c40..297b4aa 100644 --- a/bs4/tests/test_tree.py +++ b/bs4/tests/test_tree.py @@ -605,7 +605,7 @@ class SiblingTest(TreeTest): </html>''' # All that whitespace looks good but makes the tests more # difficult. Get rid of it. - markup = re.compile("\n\s*").sub("", markup) + markup = re.compile(r"\n\s*").sub("", markup) self.tree = self.soup(markup) |