Skip to content

Commit c7c652e

Browse files
committed
Revert "Make it readable"
This reverts commit 76fa38f.
1 parent 76fa38f commit c7c652e

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

python_multipart/multipart.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -172,11 +172,7 @@ def parse_options_header(value: str | bytes | None) -> tuple[bytes, dict[bytes,
172172
# Pre check for mixed RFC2231 parameter continuations (e.g., `filename*` and `filename*0*`).
173173
# email.message.Message.get_params() handles these maliciously formed headers
174174
# differently in Python 3.12 vs 3.13. We validate them here to ensure consistent behavior.
175-
param_names = [
176-
part.split("=", 1)[0].strip().lower()
177-
for part in params_part.split(";")
178-
if "=" in part
179-
]
175+
param_names = [p.split("=", 1)[0].strip().lower() for p in params_part.split(";") if "=" in p]
180176
for name in param_names:
181177
if "*" in name:
182178
base, _, rest = name.partition("*")

0 commit comments

Comments
 (0)