horsemeat 2.23.2__tar.gz → 2.24.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {horsemeat-2.23.2 → horsemeat-2.24.0}/PKG-INFO +1 -1
- {horsemeat-2.23.2 → horsemeat-2.24.0}/horsemeat/version.py +1 -1
- {horsemeat-2.23.2 → horsemeat-2.24.0}/horsemeat/webapp/handler.py +0 -1
- {horsemeat-2.23.2 → horsemeat-2.24.0}/horsemeat/webapp/request.py +12 -2
- {horsemeat-2.23.2 → horsemeat-2.24.0}/horsemeat.egg-info/PKG-INFO +1 -1
- {horsemeat-2.23.2 → horsemeat-2.24.0}/MANIFEST.in +0 -0
- {horsemeat-2.23.2 → horsemeat-2.24.0}/README +0 -0
- {horsemeat-2.23.2 → horsemeat-2.24.0}/horsemeat/__init__.py +0 -0
- {horsemeat-2.23.2 → horsemeat-2.24.0}/horsemeat/configwrapper.py +0 -0
- {horsemeat-2.23.2 → horsemeat-2.24.0}/horsemeat/model/__init__.py +0 -0
- {horsemeat-2.23.2 → horsemeat-2.24.0}/horsemeat/model/newsmessage.py +0 -0
- {horsemeat-2.23.2 → horsemeat-2.24.0}/horsemeat/model/session.py +0 -0
- {horsemeat-2.23.2 → horsemeat-2.24.0}/horsemeat/model/user.py +0 -0
- {horsemeat-2.23.2 → horsemeat-2.24.0}/horsemeat/pg.py +0 -0
- {horsemeat-2.23.2 → horsemeat-2.24.0}/horsemeat/scripts/make-frippery-project +0 -0
- {horsemeat-2.23.2 → horsemeat-2.24.0}/horsemeat/tests/__init__.py +0 -0
- {horsemeat-2.23.2 → horsemeat-2.24.0}/horsemeat/tests/test_configwrapper.py +0 -0
- {horsemeat-2.23.2 → horsemeat-2.24.0}/horsemeat/webapp/__init__.py +0 -0
- {horsemeat-2.23.2 → horsemeat-2.24.0}/horsemeat/webapp/bogusrequest.py +0 -0
- {horsemeat-2.23.2 → horsemeat-2.24.0}/horsemeat/webapp/dispatcher.py +0 -0
- {horsemeat-2.23.2 → horsemeat-2.24.0}/horsemeat/webapp/framework_templates/__init__.py +0 -0
- {horsemeat-2.23.2 → horsemeat-2.24.0}/horsemeat/webapp/frameworkhandlers.py +0 -0
- {horsemeat-2.23.2 → horsemeat-2.24.0}/horsemeat/webapp/response.py +0 -0
- {horsemeat-2.23.2 → horsemeat-2.24.0}/horsemeat/webapp/scrubber.py +0 -0
- {horsemeat-2.23.2 → horsemeat-2.24.0}/horsemeat.egg-info/SOURCES.txt +0 -0
- {horsemeat-2.23.2 → horsemeat-2.24.0}/horsemeat.egg-info/dependency_links.txt +0 -0
- {horsemeat-2.23.2 → horsemeat-2.24.0}/horsemeat.egg-info/requires.txt +0 -0
- {horsemeat-2.23.2 → horsemeat-2.24.0}/horsemeat.egg-info/top_level.txt +0 -0
- {horsemeat-2.23.2 → horsemeat-2.24.0}/requirements.txt +0 -0
- {horsemeat-2.23.2 → horsemeat-2.24.0}/setup.cfg +0 -0
- {horsemeat-2.23.2 → horsemeat-2.24.0}/setup.py +0 -0
@@ -241,7 +241,6 @@ class Handler(object):
|
|
241
241
|
for rp in self.route_patterns:
|
242
242
|
|
243
243
|
if not hasattr(rp, "match"):
|
244
|
-
log.warning("This pattern {0!r} might not work right because it has no match method (i.e., it isn't a regex!). You probably forgot to wrap it in re.compile...".format(rp))
|
245
244
|
|
246
245
|
# Just to be nice, let's check these as strings
|
247
246
|
if req.line_one == rp:
|
@@ -1,6 +1,5 @@
|
|
1
1
|
# vim: set expandtab ts=4 sw=4 filetype=python fileencoding=utf8:
|
2
2
|
|
3
|
-
import cgi
|
4
3
|
import collections.abc
|
5
4
|
import http.cookies
|
6
5
|
import hashlib
|
@@ -519,7 +518,18 @@ class Request(collections.abc.MutableMapping):
|
|
519
518
|
def parsed_content_type(self):
|
520
519
|
|
521
520
|
if self.CONTENT_TYPE:
|
522
|
-
|
521
|
+
|
522
|
+
# cgi module is deprecated.
|
523
|
+
#
|
524
|
+
# return cgi.parse_header(self.CONTENT_TYPE)
|
525
|
+
|
526
|
+
# here is recommended new approach
|
527
|
+
# https://docs.python.org/3.11/library/cgi.html#cgi.parse_header
|
528
|
+
|
529
|
+
from email.message import EmailMessage
|
530
|
+
msg = EmailMessage()
|
531
|
+
msg["content-type"] = self.CONTENT_TYPE
|
532
|
+
return msg.get_params()
|
523
533
|
|
524
534
|
@property
|
525
535
|
def charset(self):
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|