Fix W605 warnings

"W605 invalid escape sequence" would be a error in future version
of python.

Change-Id: I3828d89a2539caf41eb2c3573aa9c541e0b9b885
This commit is contained in:
IWAMOTO Toshihiro 2018-05-17 16:20:59 +09:00
parent 37bf4889ba
commit 4f6054329b
2 changed files with 4 additions and 4 deletions

View File

@ -279,7 +279,7 @@ config_generator_config_file = [
linkcheck_anchors_ignore = [
# skip gerrit anchors
'\/q\/.*',
'q\,.*',
'\/c\/.*'
r'\/q\/.*',
r'q\,.*',
r'\/c\/.*'
]

View File

@ -21,7 +21,7 @@ class TestIPMonitorEvent(base.BaseTestCase):
def test_from_text_parses_added_line(self):
event = ip_monitor.IPMonitorEvent.from_text(
'3: wlp3s0 inet 192.168.3.59/24 brd 192.168.3.255 '
'scope global dynamic wlp3s0\ valid_lft 300sec '
r'scope global dynamic wlp3s0\ valid_lft 300sec '
'preferred_lft 300sec')
self.assertEqual('wlp3s0', event.interface)
self.assertTrue(event.added)