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.
Files changed (31) hide show
  1. {horsemeat-2.23.2 → horsemeat-2.24.0}/PKG-INFO +1 -1
  2. {horsemeat-2.23.2 → horsemeat-2.24.0}/horsemeat/version.py +1 -1
  3. {horsemeat-2.23.2 → horsemeat-2.24.0}/horsemeat/webapp/handler.py +0 -1
  4. {horsemeat-2.23.2 → horsemeat-2.24.0}/horsemeat/webapp/request.py +12 -2
  5. {horsemeat-2.23.2 → horsemeat-2.24.0}/horsemeat.egg-info/PKG-INFO +1 -1
  6. {horsemeat-2.23.2 → horsemeat-2.24.0}/MANIFEST.in +0 -0
  7. {horsemeat-2.23.2 → horsemeat-2.24.0}/README +0 -0
  8. {horsemeat-2.23.2 → horsemeat-2.24.0}/horsemeat/__init__.py +0 -0
  9. {horsemeat-2.23.2 → horsemeat-2.24.0}/horsemeat/configwrapper.py +0 -0
  10. {horsemeat-2.23.2 → horsemeat-2.24.0}/horsemeat/model/__init__.py +0 -0
  11. {horsemeat-2.23.2 → horsemeat-2.24.0}/horsemeat/model/newsmessage.py +0 -0
  12. {horsemeat-2.23.2 → horsemeat-2.24.0}/horsemeat/model/session.py +0 -0
  13. {horsemeat-2.23.2 → horsemeat-2.24.0}/horsemeat/model/user.py +0 -0
  14. {horsemeat-2.23.2 → horsemeat-2.24.0}/horsemeat/pg.py +0 -0
  15. {horsemeat-2.23.2 → horsemeat-2.24.0}/horsemeat/scripts/make-frippery-project +0 -0
  16. {horsemeat-2.23.2 → horsemeat-2.24.0}/horsemeat/tests/__init__.py +0 -0
  17. {horsemeat-2.23.2 → horsemeat-2.24.0}/horsemeat/tests/test_configwrapper.py +0 -0
  18. {horsemeat-2.23.2 → horsemeat-2.24.0}/horsemeat/webapp/__init__.py +0 -0
  19. {horsemeat-2.23.2 → horsemeat-2.24.0}/horsemeat/webapp/bogusrequest.py +0 -0
  20. {horsemeat-2.23.2 → horsemeat-2.24.0}/horsemeat/webapp/dispatcher.py +0 -0
  21. {horsemeat-2.23.2 → horsemeat-2.24.0}/horsemeat/webapp/framework_templates/__init__.py +0 -0
  22. {horsemeat-2.23.2 → horsemeat-2.24.0}/horsemeat/webapp/frameworkhandlers.py +0 -0
  23. {horsemeat-2.23.2 → horsemeat-2.24.0}/horsemeat/webapp/response.py +0 -0
  24. {horsemeat-2.23.2 → horsemeat-2.24.0}/horsemeat/webapp/scrubber.py +0 -0
  25. {horsemeat-2.23.2 → horsemeat-2.24.0}/horsemeat.egg-info/SOURCES.txt +0 -0
  26. {horsemeat-2.23.2 → horsemeat-2.24.0}/horsemeat.egg-info/dependency_links.txt +0 -0
  27. {horsemeat-2.23.2 → horsemeat-2.24.0}/horsemeat.egg-info/requires.txt +0 -0
  28. {horsemeat-2.23.2 → horsemeat-2.24.0}/horsemeat.egg-info/top_level.txt +0 -0
  29. {horsemeat-2.23.2 → horsemeat-2.24.0}/requirements.txt +0 -0
  30. {horsemeat-2.23.2 → horsemeat-2.24.0}/setup.cfg +0 -0
  31. {horsemeat-2.23.2 → horsemeat-2.24.0}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: horsemeat
3
- Version: 2.23.2
3
+ Version: 2.24.0
4
4
  Summary: Web framework for the damned. The mad.
5
5
  Home-page: https://github.com/216software/horsemeat
6
6
  Author: 216 Software, LLC
@@ -22,4 +22,4 @@ hasn't been installed yet.
22
22
 
23
23
  """
24
24
 
25
- __version__ = '2.23.2'
25
+ __version__ = '2.24.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
- return cgi.parse_header(self.CONTENT_TYPE)
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):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: horsemeat
3
- Version: 2.23.2
3
+ Version: 2.24.0
4
4
  Summary: Web framework for the damned. The mad.
5
5
  Home-page: https://github.com/216software/horsemeat
6
6
  Author: 216 Software, LLC
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes