Removed unused HttpRequest._post_parse_error attribute.
Unused since 8f8c54f70b
.
This commit is contained in:
parent
ce3351b950
commit
98e8c0293b
|
@ -88,7 +88,6 @@ class WSGIRequest(HttpRequest):
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
self.encoding = self.content_params['charset']
|
self.encoding = self.content_params['charset']
|
||||||
self._post_parse_error = False
|
|
||||||
try:
|
try:
|
||||||
content_length = int(environ.get('CONTENT_LENGTH'))
|
content_length = int(environ.get('CONTENT_LENGTH'))
|
||||||
except (ValueError, TypeError):
|
except (ValueError, TypeError):
|
||||||
|
|
|
@ -57,7 +57,6 @@ class HttpRequest:
|
||||||
self.path_info = ''
|
self.path_info = ''
|
||||||
self.method = None
|
self.method = None
|
||||||
self.resolver_match = None
|
self.resolver_match = None
|
||||||
self._post_parse_error = False
|
|
||||||
self.content_type = None
|
self.content_type = None
|
||||||
self.content_params = None
|
self.content_params = None
|
||||||
|
|
||||||
|
@ -289,7 +288,6 @@ class HttpRequest:
|
||||||
def _mark_post_parse_error(self):
|
def _mark_post_parse_error(self):
|
||||||
self._post = QueryDict()
|
self._post = QueryDict()
|
||||||
self._files = MultiValueDict()
|
self._files = MultiValueDict()
|
||||||
self._post_parse_error = True
|
|
||||||
|
|
||||||
def _load_post_and_files(self):
|
def _load_post_and_files(self):
|
||||||
"""Populate self._post and self._files if the content-type is a form type"""
|
"""Populate self._post and self._files if the content-type is a form type"""
|
||||||
|
@ -313,9 +311,6 @@ class HttpRequest:
|
||||||
# formatting the error the request handler might access
|
# formatting the error the request handler might access
|
||||||
# self.POST, set self._post and self._file to prevent
|
# self.POST, set self._post and self._file to prevent
|
||||||
# attempts to parse POST data again.
|
# attempts to parse POST data again.
|
||||||
# Mark that an error occurred. This allows self.__repr__ to
|
|
||||||
# be explicit about it instead of simply representing an
|
|
||||||
# empty POST
|
|
||||||
self._mark_post_parse_error()
|
self._mark_post_parse_error()
|
||||||
raise
|
raise
|
||||||
elif self.content_type == 'application/x-www-form-urlencoded':
|
elif self.content_type == 'application/x-www-form-urlencoded':
|
||||||
|
|
Loading…
Reference in New Issue