From a7a24cc1af5ccc3b2b50e3ca4b46e3afad5b5b8c Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Fri, 27 Mar 2020 21:03:56 +0100 Subject: [PATCH] Update hacking for Python3 The repo is Python 3 now, so update hacking to version 3.0 which supports Python 3. Fix: W605 invalid escape sequence Change-Id: Id55815b07d2355983a1ba97565f2473fdd49f4b3 --- test-requirements.txt | 2 +- tests/test_titles.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test-requirements.txt b/test-requirements.txt index ef2a53d..15a745f 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -2,5 +2,5 @@ # of appearance. Changing the order has an impact on the overall integration # process, which may cause wedges in the gate later. -hacking>=0.10.0,<0.11 +hacking>=3.0,<3.1.0 # Apache-2.0 stestr>=2.0.0 # Apache-2.0 diff --git a/tests/test_titles.py b/tests/test_titles.py index afe7f7a..5dd9982 100644 --- a/tests/test_titles.py +++ b/tests/test_titles.py @@ -84,7 +84,7 @@ class TestTitles(testtools.TestCase): if line.startswith("..") and "image::" in line: continue # Allow lines which do not contain any whitespace - if re.match("\s*[^\s]+$", line): + if re.match(r"\s*[^\s]+$", line): continue self.assertTrue( len(line) < 80,