summaryrefslogtreecommitdiff
path: root/django/http/request.py
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2017-01-11 23:17:25 +0100
committerClaude Paroz <claude@2xlibre.net>2017-01-20 08:44:31 +0100
commitdc8834cad41aa407f402dc54788df3cd37ab3e22 (patch)
treef44864ba7a64c614f00a3d2ad8548ce479e59e1e /django/http/request.py
parentbf1c9570270b46e9e92b256fb9be394258029bbf (diff)
Refs #23919 -- Removed unneeded force_str calls
Diffstat (limited to 'django/http/request.py')
-rw-r--r--django/http/request.py10
1 files changed, 3 insertions, 7 deletions
diff --git a/django/http/request.py b/django/http/request.py
index 4ca2ed25fa..6f3b0c9951 100644
--- a/django/http/request.py
+++ b/django/http/request.py
@@ -14,9 +14,7 @@ from django.core.files import uploadhandler
from django.http.multipartparser import MultiPartParser, MultiPartParserError
from django.utils import six
from django.utils.datastructures import ImmutableList, MultiValueDict
-from django.utils.encoding import (
- escape_uri_path, force_bytes, force_str, iri_to_uri,
-)
+from django.utils.encoding import escape_uri_path, force_bytes, iri_to_uri
from django.utils.http import is_same_domain, limited_parse_qsl
RAISE_ERROR = object()
@@ -64,10 +62,8 @@ class HttpRequest:
def __repr__(self):
if self.method is None or not self.get_full_path():
- return force_str('<%s>' % self.__class__.__name__)
- return force_str(
- '<%s: %s %r>' % (self.__class__.__name__, self.method, force_str(self.get_full_path()))
- )
+ return '<%s>' % self.__class__.__name__
+ return '<%s: %s %r>' % (self.__class__.__name__, self.method, self.get_full_path())
def _get_raw_host(self):
"""