horsemeat 2.22.2__tar.gz → 2.22.4__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.22.2 → horsemeat-2.22.4}/PKG-INFO +1 -1
- horsemeat-2.22.4/README +6 -0
- {horsemeat-2.22.2 → horsemeat-2.22.4}/horsemeat/version.py +1 -1
- {horsemeat-2.22.2 → horsemeat-2.22.4}/horsemeat/webapp/bogusrequest.py +3 -3
- {horsemeat-2.22.2 → horsemeat-2.22.4}/horsemeat/webapp/request.py +5 -5
- {horsemeat-2.22.2 → horsemeat-2.22.4}/horsemeat/webapp/response.py +1 -1
- {horsemeat-2.22.2 → horsemeat-2.22.4}/horsemeat.egg-info/PKG-INFO +1 -1
- horsemeat-2.22.2/README +0 -3
- {horsemeat-2.22.2 → horsemeat-2.22.4}/MANIFEST.in +0 -0
- {horsemeat-2.22.2 → horsemeat-2.22.4}/horsemeat/__init__.py +0 -0
- {horsemeat-2.22.2 → horsemeat-2.22.4}/horsemeat/configwrapper.py +0 -0
- {horsemeat-2.22.2 → horsemeat-2.22.4}/horsemeat/model/__init__.py +0 -0
- {horsemeat-2.22.2 → horsemeat-2.22.4}/horsemeat/model/newsmessage.py +0 -0
- {horsemeat-2.22.2 → horsemeat-2.22.4}/horsemeat/model/session.py +0 -0
- {horsemeat-2.22.2 → horsemeat-2.22.4}/horsemeat/model/user.py +0 -0
- {horsemeat-2.22.2 → horsemeat-2.22.4}/horsemeat/pg.py +0 -0
- {horsemeat-2.22.2 → horsemeat-2.22.4}/horsemeat/scripts/make-frippery-project +0 -0
- {horsemeat-2.22.2 → horsemeat-2.22.4}/horsemeat/tests/__init__.py +0 -0
- {horsemeat-2.22.2 → horsemeat-2.22.4}/horsemeat/tests/test_configwrapper.py +0 -0
- {horsemeat-2.22.2 → horsemeat-2.22.4}/horsemeat/webapp/__init__.py +0 -0
- {horsemeat-2.22.2 → horsemeat-2.22.4}/horsemeat/webapp/dispatcher.py +0 -0
- {horsemeat-2.22.2 → horsemeat-2.22.4}/horsemeat/webapp/framework_templates/__init__.py +0 -0
- {horsemeat-2.22.2 → horsemeat-2.22.4}/horsemeat/webapp/frameworkhandlers.py +0 -0
- {horsemeat-2.22.2 → horsemeat-2.22.4}/horsemeat/webapp/handler.py +0 -0
- {horsemeat-2.22.2 → horsemeat-2.22.4}/horsemeat/webapp/scrubber.py +0 -0
- {horsemeat-2.22.2 → horsemeat-2.22.4}/horsemeat.egg-info/SOURCES.txt +0 -0
- {horsemeat-2.22.2 → horsemeat-2.22.4}/horsemeat.egg-info/dependency_links.txt +0 -0
- {horsemeat-2.22.2 → horsemeat-2.22.4}/horsemeat.egg-info/requires.txt +0 -0
- {horsemeat-2.22.2 → horsemeat-2.22.4}/horsemeat.egg-info/top_level.txt +0 -0
- {horsemeat-2.22.2 → horsemeat-2.22.4}/requirements.txt +0 -0
- {horsemeat-2.22.2 → horsemeat-2.22.4}/setup.cfg +0 -0
- {horsemeat-2.22.2 → horsemeat-2.22.4}/setup.py +0 -0
horsemeat-2.22.4/README
ADDED
@@ -1,6 +1,6 @@
|
|
1
1
|
# vim: set expandtab ts=4 sw=4 filetype=python:
|
2
2
|
|
3
|
-
import
|
3
|
+
import urllib.parse
|
4
4
|
|
5
5
|
class BogusRequest(object):
|
6
6
|
|
@@ -44,7 +44,7 @@ class BogusRequest(object):
|
|
44
44
|
|
45
45
|
"""
|
46
46
|
|
47
|
-
parts =
|
47
|
+
parts = urllib.parse.urlparse(url)
|
48
48
|
|
49
49
|
return cls('GET', parts.netloc, parts.path, parts.query)
|
50
50
|
|
@@ -57,7 +57,7 @@ class BogusRequest(object):
|
|
57
57
|
def parsed_QS(self):
|
58
58
|
|
59
59
|
if self.QUERY_STRING:
|
60
|
-
return
|
60
|
+
return urllib.parse.parse_qs(self.QUERY_STRING)
|
61
61
|
|
62
62
|
else:
|
63
63
|
return {}
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
import cgi
|
4
4
|
import collections
|
5
|
-
import
|
5
|
+
import http.cookies
|
6
6
|
import hashlib
|
7
7
|
import hmac
|
8
8
|
import inspect
|
@@ -12,7 +12,7 @@ import re
|
|
12
12
|
import sys
|
13
13
|
import textwrap
|
14
14
|
import urllib
|
15
|
-
import
|
15
|
+
import urllib.parse
|
16
16
|
import warnings
|
17
17
|
import wsgiref.util
|
18
18
|
|
@@ -85,7 +85,7 @@ class Request(collections.MutableMapping):
|
|
85
85
|
return self['parsed_QS']
|
86
86
|
|
87
87
|
if self.QUERY_STRING:
|
88
|
-
parsed_qs =
|
88
|
+
parsed_qs = urllib.parse.parse_qs(
|
89
89
|
urllib.unquote(self.QUERY_STRING),
|
90
90
|
keep_blank_values=1)
|
91
91
|
|
@@ -99,7 +99,7 @@ class Request(collections.MutableMapping):
|
|
99
99
|
def parsed_cookie(self):
|
100
100
|
|
101
101
|
if self.HTTP_COOKIE:
|
102
|
-
c =
|
102
|
+
c = http.cookies.SimpleCookie()
|
103
103
|
c.load(self.HTTP_COOKIE)
|
104
104
|
return c
|
105
105
|
|
@@ -228,7 +228,7 @@ class Request(collections.MutableMapping):
|
|
228
228
|
if self.body:
|
229
229
|
|
230
230
|
try:
|
231
|
-
self['horsemeat.parsed_body'] =
|
231
|
+
self['horsemeat.parsed_body'] = urllib.parse.parse_qs(
|
232
232
|
urllib.unquote(self.body).decode(self.charset),
|
233
233
|
keep_blank_values=1)
|
234
234
|
|
horsemeat-2.22.2/README
DELETED
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
|