python-falcon/SOURCES/0001-Remove-vendored-mimeparse.patch
2023-09-21 17:09:58 +02:00

62 lines
1.8 KiB
Diff

From de4b019a6e6d30b11dfc6b0d4033a33b2c28e5b4 Mon Sep 17 00:00:00 2001
From: Carl George <carl@george.computer>
Date: Tue, 12 Oct 2021 12:04:25 -0500
Subject: [PATCH] Remove vendored mimeparse
---
falcon/media/handlers.py | 2 +-
falcon/request.py | 2 +-
setup.py | 3 +--
3 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/falcon/media/handlers.py b/falcon/media/handlers.py
index 8ab8d58..899b83a 100644
--- a/falcon/media/handlers.py
+++ b/falcon/media/handlers.py
@@ -11,7 +11,7 @@ from falcon.media.multipart import MultipartParseOptions
from falcon.media.urlencoded import URLEncodedFormHandler
from falcon.util import deprecation
from falcon.util import misc
-from falcon.vendor import mimeparse
+import mimeparse
class MissingDependencyHandler:
diff --git a/falcon/request.py b/falcon/request.py
index 7282ace..1df06fa 100644
--- a/falcon/request.py
+++ b/falcon/request.py
@@ -32,7 +32,7 @@ from falcon.util import structures
from falcon.util.misc import isascii
from falcon.util.uri import parse_host
from falcon.util.uri import parse_query_string
-from falcon.vendor import mimeparse
+import mimeparse
DEFAULT_ERROR_LOG_FORMAT = ('{0:%Y-%m-%d %H:%M:%S} [FALCON] [ERROR]'
' {1} {2}{3} => ')
diff --git a/setup.py b/setup.py
index 3c8e979..a24646d 100644
--- a/setup.py
+++ b/setup.py
@@ -13,7 +13,7 @@ MYDIR = path.abspath(os.path.dirname(__file__))
VERSION = importlib.import_module('falcon.version')
VERSION = VERSION.__version__
-REQUIRES = []
+REQUIRES = ['python-mimeparse>=1.5.2']
try:
sys.pypy_version_info
@@ -48,7 +48,6 @@ if CYTHON:
'falcon.media',
'falcon.routing',
'falcon.util',
- 'falcon.vendor.mimeparse',
]
modules_to_exclude = [
--
2.31.1