diff options
author | Clayton Smith <argilo@gmail.com> | 2018-09-26 08:16:08 -0400 |
---|---|---|
committer | Marcus Müller <marcus@hostalia.de> | 2018-11-01 13:56:52 +0100 |
commit | bab3c3fbc1e4a0bc303b88077514144fd6e3a434 (patch) | |
tree | cba3a098c823f298e05dca691ac2fb2b5ba197a7 /gr-blocks/python | |
parent | 63d4bb4b47a2b66be05b16cf0164f3cd57ca92fa (diff) |
Fix invalid escape sequences.
Diffstat (limited to 'gr-blocks/python')
-rw-r--r-- | gr-blocks/python/blocks/qa_cpp_py_binding.py | 4 | ||||
-rw-r--r-- | gr-blocks/python/blocks/qa_cpp_py_binding_set.py | 4 | ||||
-rw-r--r-- | gr-blocks/python/blocks/qa_ctrlport_probes.py | 20 |
3 files changed, 14 insertions, 14 deletions
diff --git a/gr-blocks/python/blocks/qa_cpp_py_binding.py b/gr-blocks/python/blocks/qa_cpp_py_binding.py index f15bfddb29..a2c6773691 100644 --- a/gr-blocks/python/blocks/qa_cpp_py_binding.py +++ b/gr-blocks/python/blocks/qa_cpp_py_binding.py @@ -153,8 +153,8 @@ class test_cpp_py_binding(gr_unittest.TestCase): # Get available endpoint ep = gr.rpcmanager_get().endpoints()[0] - hostname = re.search("-h (\S+|\d+\.\d+\.\d+\.\d+)", ep).group(1) - portnum = re.search("-p (\d+)", ep).group(1) + hostname = re.search(r"-h (\S+|\d+\.\d+\.\d+\.\d+)", ep).group(1) + portnum = re.search(r"-p (\d+)", ep).group(1) argv = [None, hostname, portnum] # Initialize a simple ControlPort client from endpoint diff --git a/gr-blocks/python/blocks/qa_cpp_py_binding_set.py b/gr-blocks/python/blocks/qa_cpp_py_binding_set.py index 641f588faf..925871e75f 100644 --- a/gr-blocks/python/blocks/qa_cpp_py_binding_set.py +++ b/gr-blocks/python/blocks/qa_cpp_py_binding_set.py @@ -120,8 +120,8 @@ class test_cpp_py_binding_set(gr_unittest.TestCase): # Get available endpoint ep = gr.rpcmanager_get().endpoints()[0] - hostname = re.search("-h (\S+|\d+\.\d+\.\d+\.\d+)", ep).group(1) - portnum = re.search("-p (\d+)", ep).group(1) + hostname = re.search(r"-h (\S+|\d+\.\d+\.\d+\.\d+)", ep).group(1) + portnum = re.search(r"-p (\d+)", ep).group(1) argv = [None, hostname, portnum] # Initialize a simple ControlPort client from endpoint diff --git a/gr-blocks/python/blocks/qa_ctrlport_probes.py b/gr-blocks/python/blocks/qa_ctrlport_probes.py index d373bb9fff..a6dadcf6a3 100644 --- a/gr-blocks/python/blocks/qa_ctrlport_probes.py +++ b/gr-blocks/python/blocks/qa_ctrlport_probes.py @@ -58,8 +58,8 @@ class test_ctrlport_probes(gr_unittest.TestCase): # Get available endpoint ep = gr.rpcmanager_get().endpoints()[0] - hostname = re.search("-h (\S+|\d+\.\d+\.\d+\.\d+)", ep).group(1) - portnum = re.search("-p (\d+)", ep).group(1) + hostname = re.search(r"-h (\S+|\d+\.\d+\.\d+\.\d+)", ep).group(1) + portnum = re.search(r"-p (\d+)", ep).group(1) argv = [None, hostname, portnum] # Initialize a simple ControlPort client from endpoint @@ -99,8 +99,8 @@ class test_ctrlport_probes(gr_unittest.TestCase): # Get available endpoint ep = gr.rpcmanager_get().endpoints()[0] - hostname = re.search("-h (\S+|\d+\.\d+\.\d+\.\d+)", ep).group(1) - portnum = re.search("-p (\d+)", ep).group(1) + hostname = re.search(r"-h (\S+|\d+\.\d+\.\d+\.\d+)", ep).group(1) + portnum = re.search(r"-p (\d+)", ep).group(1) argv = [None, hostname, portnum] # Initialize a simple ControlPort client from endpoint @@ -139,8 +139,8 @@ class test_ctrlport_probes(gr_unittest.TestCase): # Get available endpoint ep = gr.rpcmanager_get().endpoints()[0] - hostname = re.search("-h (\S+|\d+\.\d+\.\d+\.\d+)", ep).group(1) - portnum = re.search("-p (\d+)", ep).group(1) + hostname = re.search(r"-h (\S+|\d+\.\d+\.\d+\.\d+)", ep).group(1) + portnum = re.search(r"-p (\d+)", ep).group(1) argv = [None, hostname, portnum] # Initialize a simple ControlPort client from endpoint @@ -180,8 +180,8 @@ class test_ctrlport_probes(gr_unittest.TestCase): # Get available endpoint ep = gr.rpcmanager_get().endpoints()[0] - hostname = re.search("-h (\S+|\d+\.\d+\.\d+\.\d+)", ep).group(1) - portnum = re.search("-p (\d+)", ep).group(1) + hostname = re.search(r"-h (\S+|\d+\.\d+\.\d+\.\d+)", ep).group(1) + portnum = re.search(r"-p (\d+)", ep).group(1) argv = [None, hostname, portnum] # Initialize a simple ControlPort client from endpoint @@ -220,8 +220,8 @@ class test_ctrlport_probes(gr_unittest.TestCase): # Get available endpoint ep = gr.rpcmanager_get().endpoints()[0] - hostname = re.search("-h (\S+|\d+\.\d+\.\d+\.\d+)", ep).group(1) - portnum = re.search("-p (\d+)", ep).group(1) + hostname = re.search(r"-h (\S+|\d+\.\d+\.\d+\.\d+)", ep).group(1) + portnum = re.search(r"-p (\d+)", ep).group(1) argv = [None, hostname, portnum] # Initialize a simple ControlPort client from endpoint |