|
34 | 34 | progressbar = None
|
35 | 35 |
|
36 | 36 | ip_pattern = re.compile(r"(\d+)\.(\d+)\.(\d+)\.(\d+)$")
|
37 |
| -localhost_with_optional_domain_pattern = re.compile("localhost(\.\S\S*)?$") |
| 37 | +localhost_with_optional_domain_pattern = re.compile(r"localhost(\.\S\S*)?$") |
38 | 38 |
|
39 | 39 |
|
40 | 40 | def is_localhost_ip(s):
|
@@ -268,7 +268,7 @@ def write_and_check_replica_on_parallel_connections(
|
268 | 268 | required_num_replicas=1,
|
269 | 269 | seconds_to_wait_for_replicas=10,
|
270 | 270 | ):
|
271 |
| - """Helper function for testing irods/irods#5548 and irods/irods#5848. |
| 271 | + r"""Helper function for testing irods/irods#5548 and irods/irods#5848. |
272 | 272 |
|
273 | 273 | Writes the string "books\n" to a replica, but not as a single write operation.
|
274 | 274 | It is done piecewise on two independent connections, essentially simulating parallel "put".
|
@@ -417,7 +417,7 @@ def test_put_get_parallel_autoswitch_A__235(self):
|
417 | 417 |
|
418 | 418 | PUT_LOG = io.StringIO()
|
419 | 419 | GET_LOG = io.StringIO()
|
420 |
| - NumThreadsRegex = re.compile("^num_threads\s*=\s*(\d+)", re.MULTILINE) |
| 420 | + NumThreadsRegex = re.compile(r"^num_threads\s*=\s*(\d+)", re.MULTILINE) |
421 | 421 |
|
422 | 422 | try:
|
423 | 423 | logger = logging.getLogger("irods.parallel")
|
@@ -601,7 +601,7 @@ def test_verify_chksum__282_287(self):
|
601 | 601 | )
|
602 | 602 |
|
603 | 603 | NO_CHECKSUM_MESSAGE_PATTERN = re.compile(
|
604 |
| - "No\s+Checksum\s+Available.+\s+Replica\s\[(\d+)\]", re.IGNORECASE |
| 604 | + r"No\s+Checksum\s+Available.+\s+Replica\s\[(\d+)\]", re.IGNORECASE |
605 | 605 | )
|
606 | 606 |
|
607 | 607 | Reported_repls_without_checksum = set(
|
@@ -1046,8 +1046,8 @@ def assert_expected_redirection_logging(BUF):
|
1046 | 1046 | nthr = 0
|
1047 | 1047 | search_text = BUF.getvalue()
|
1048 | 1048 | find_iterator = itertools.chain(
|
1049 |
| - re.finditer("redirect_to_host = (\S+)", search_text), |
1050 |
| - re.finditer("target_host = (\S+)", search_text), |
| 1049 | + re.finditer(r"redirect_to_host = (\S+)", search_text), |
| 1050 | + re.finditer(r"target_host = (\S+)", search_text), |
1051 | 1051 | )
|
1052 | 1052 | for match in find_iterator:
|
1053 | 1053 | nthr += 1
|
|
0 commit comments