Skip to content

Commit 23392ea

Browse files
committed
oidc-exchange: fix herestring style
1 parent c3cd018 commit 23392ea

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

oidc-exchange.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010

1111
_GITHUB_STEP_SUMMARY = Path(os.getenv("GITHUB_STEP_SUMMARY"))
1212

13-
_TOKEN_RETRIEVAL_FAILED_MESSAGE = dedent(
14-
"""
13+
_TOKEN_RETRIEVAL_FAILED_MESSAGE = dedent("""
1514
OIDC token retrieval failed: {identity_error}
1615
1716
This generally indicates a workflow configuration error, such as insufficient
@@ -110,8 +109,7 @@ def assert_successful_audience_call(resp: requests.Response, domain: str):
110109
# Token exchange failure normally produces a JSON error response, but
111110
# we might have hit a server error instead.
112111
die(
113-
dedent(
114-
f"""
112+
dedent(f"""
115113
Token request failed: the index produced an unexpected
116114
{mint_token_resp.status_code} response.
117115
@@ -127,8 +125,7 @@ def assert_successful_audience_call(resp: requests.Response, domain: str):
127125
)
128126

129127
# NOTE: Can't `dedent(...)` here because `reasons` is newline-delimited.
130-
die(
131-
f"""
128+
die(f"""
132129
Token request failed: the server refused the request for the following reasons:
133130
134131
{reasons}
@@ -139,8 +136,7 @@ def assert_successful_audience_call(resp: requests.Response, domain: str):
139136
pypi_token = mint_token_payload.get("token")
140137
if pypi_token is None:
141138
die(
142-
dedent(
143-
"""
139+
dedent("""
144140
Token response error: the index gave us an invalid response.
145141
146142
This strongly suggests a server configuration or downtime issue; wait

0 commit comments

Comments
 (0)