mirror of
https://github.com/ansible-collections/community.docker.git
synced 2026-03-16 12:06:29 +00:00
Make consider-using-f-string changes compatible with older Python versions.
This commit is contained in:
parent
b49031ff19
commit
5bab9a41d3
@ -176,7 +176,7 @@ _RE_PULL_EVENT = re.compile(
|
||||
r"\s*"
|
||||
r"(?P<service>\S+)"
|
||||
r"\s+"
|
||||
rf"(?P<status>{'|'.join(re.escape(status) for status in DOCKER_STATUS_PULL)})"
|
||||
f"(?P<status>{'|'.join(re.escape(status) for status in DOCKER_STATUS_PULL)})"
|
||||
r"\s*"
|
||||
r"$"
|
||||
)
|
||||
@ -186,7 +186,7 @@ _RE_PULL_PROGRESS = re.compile(
|
||||
r"\s*"
|
||||
r"(?P<layer>\S+)"
|
||||
r"\s+"
|
||||
rf"(?P<status>{'|'.join(
|
||||
f"(?P<status>{'|'.join(
|
||||
re.escape(status)
|
||||
for status in sorted(DOCKER_PULL_PROGRESS_DONE | DOCKER_PULL_PROGRESS_WORKING)
|
||||
)})"
|
||||
@ -200,7 +200,7 @@ _RE_ERROR_EVENT = re.compile(
|
||||
r"\s*"
|
||||
r"(?P<resource_id>\S+)"
|
||||
r"\s+"
|
||||
rf"(?P<status>{'|'.join(re.escape(status) for status in DOCKER_STATUS_ERROR)})"
|
||||
f"(?P<status>{'|'.join(re.escape(status) for status in DOCKER_STATUS_ERROR)})"
|
||||
r"\s*"
|
||||
r"(?P<msg>\S.*\S)?"
|
||||
r"$"
|
||||
@ -211,7 +211,7 @@ _RE_WARNING_EVENT = re.compile(
|
||||
r"\s*"
|
||||
r"(?P<resource_id>\S+)"
|
||||
r"\s+"
|
||||
rf"(?P<status>{'|'.join(re.escape(status) for status in DOCKER_STATUS_WARNING)})"
|
||||
f"(?P<status>{'|'.join(re.escape(status) for status in DOCKER_STATUS_WARNING)})"
|
||||
r"\s*"
|
||||
r"(?P<msg>\S.*\S)?"
|
||||
r"$"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user