-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor the Multipart parsing into a Sans-IO layer
This allows it to be used in async (ASGI) frameworks. It also hopefully makes the code a little clearer to follow. This removes the ``Content-Transfer-Encoding`` support as RFC7578 states it is deprecated and Currently, no deployed implementations that send such bodies have been discovered. This requires the dataclasses backport, which I think is ok as dataclasses are in the stdlib, and 3.6 has less than a year till EoL. The API is based on that successfully used by h11.
- Loading branch information
Showing
9 changed files
with
420 additions
and
445 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
from setuptools import setup | ||
|
||
# Metadata goes in setup.cfg. These are here for GitHub's dependency graph. | ||
setup(name="Werkzeug", extras_require={"watchdog": ["watchdog"]}) | ||
setup( | ||
name="Werkzeug", | ||
install_requires=["dataclasses; python_version < '3.7'"], | ||
extras_require={"watchdog": ["watchdog"]}, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.