diff options
| author | Aarni Koskela <akx@iki.fi> | 2025-03-05 18:45:10 +0200 |
|---|---|---|
| committer | nessita <124304+nessita@users.noreply.github.com> | 2025-03-31 22:43:13 -0300 |
| commit | c972af69e2021b75b89d8bc47e214ef875bbdc06 (patch) | |
| tree | 7a454faf8b3e4fadd1a92ac37b9d1df19a5e3fcb /django/http | |
| parent | 6888375c53476011754f778deabc6cdbfa327011 (diff) | |
Refs #28909 -- Simplified code using unpacking generalizations.
Diffstat (limited to 'django/http')
| -rw-r--r-- | django/http/multipartparser.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/http/multipartparser.py b/django/http/multipartparser.py index 58b8546be7..45144e1886 100644 --- a/django/http/multipartparser.py +++ b/django/http/multipartparser.py @@ -107,7 +107,7 @@ class MultiPartParser: # For compatibility with low-level network APIs (with 32-bit integers), # the chunk size should be < 2^31, but still divisible by 4. possible_sizes = [x.chunk_size for x in upload_handlers if x.chunk_size] - self._chunk_size = min([2**31 - 4] + possible_sizes) + self._chunk_size = min([2**31 - 4, *possible_sizes]) self._meta = META self._encoding = encoding or settings.DEFAULT_CHARSET |
