From 7606a4fee252fe80d2e37de31672694fbaef0b01 Mon Sep 17 00:00:00 2001 From: Sky O Date: Fri, 29 Mar 2024 15:48:10 +0000 Subject: [PATCH] Use class --- moto/moto_proxy/utils.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/moto/moto_proxy/utils.py b/moto/moto_proxy/utils.py index 7fc3017b3..71b873782 100644 --- a/moto/moto_proxy/utils.py +++ b/moto/moto_proxy/utils.py @@ -2,17 +2,20 @@ from typing import Dict, Optional, Tuple import multipart +class Part: + headers = [] + data : bytes def get_body_from_form_data( body: bytes, boundary: str ) -> Tuple[Optional[bytes], Dict[str, str]]: print("YO BYTES", body) - current_part = { headers : [], data : "" } + current_part = Part() parts = [] def on_part_begin(): - current_part = { headers : [], data : "" } + current_part = Part() print("YO PART BEGAN") return