File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 6565
6666try :
6767 # Optional dependency of Starlette to parse form data.
68- import multipart # type: ignore
68+ try :
69+ # python-multipart 0.0.13 and later
70+ import python_multipart # type: ignore
71+ except ImportError :
72+ # python-multipart 0.0.12 and later
73+ import multipart as python_multipart # type: ignore
6974except ImportError :
70- multipart = None
75+ python_multipart = None
7176
7277
7378_DEFAULT_TRANSACTION_NAME = "generic Starlette request"
@@ -657,7 +662,7 @@ def cookies(self):
657662
658663 async def form (self ):
659664 # type: (StarletteRequestExtractor) -> Any
660- if multipart is None :
665+ if python_multipart is None :
661666 return None
662667
663668 # Parse the body first to get it cached, as Starlette does not cache form() as it
You can’t perform that action at this time.
0 commit comments