summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Schneier <josh.schneier@gmail.com>2018-06-07 18:51:33 -0400
committerTim Graham <timograham@gmail.com>2018-06-07 18:51:33 -0400
commit98e8c0293b96de7dea74817476847c363d9c2496 (patch)
treebeb2e0dcd0fb5fa3348dcb3eb041bbcae2998b51
parentce3351b9508896afdf87d11bd64fd6b5ad928228 (diff)
downloaddjango-98e8c0293b96de7dea74817476847c363d9c2496.tar.gz
Removed unused HttpRequest._post_parse_error attribute.
Unused since 8f8c54f70bfa3aa8e311514297f1eeded2c32593.
-rw-r--r--django/core/handlers/wsgi.py1
-rw-r--r--django/http/request.py5
2 files changed, 0 insertions, 6 deletions
diff --git a/django/core/handlers/wsgi.py b/django/core/handlers/wsgi.py
index a2d5b124af..6271374f83 100644
--- a/django/core/handlers/wsgi.py
+++ b/django/core/handlers/wsgi.py
@@ -88,7 +88,6 @@ class WSGIRequest(HttpRequest):
pass
else:
self.encoding = self.content_params['charset']
- self._post_parse_error = False
try:
content_length = int(environ.get('CONTENT_LENGTH'))
except (ValueError, TypeError):
diff --git a/django/http/request.py b/django/http/request.py
index f7f89913ef..3440e3b95d 100644
--- a/django/http/request.py
+++ b/django/http/request.py
@@ -57,7 +57,6 @@ class HttpRequest:
self.path_info = ''
self.method = None
self.resolver_match = None
- self._post_parse_error = False
self.content_type = None
self.content_params = None
@@ -289,7 +288,6 @@ class HttpRequest:
def _mark_post_parse_error(self):
self._post = QueryDict()
self._files = MultiValueDict()
- self._post_parse_error = True
def _load_post_and_files(self):
"""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
# self.POST, set self._post and self._file to prevent
# 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()
raise
elif self.content_type == 'application/x-www-form-urlencoded':