summaryrefslogtreecommitdiff
path: root/django/utils/tree.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/utils/tree.py
parentbf1c9570270b46e9e92b256fb9be394258029bbf (diff)
downloaddjango-dc8834cad41aa407f402dc54788df3cd37ab3e22.tar.gz
Refs #23919 -- Removed unneeded force_str calls
Diffstat (limited to 'django/utils/tree.py')
-rw-r--r--django/utils/tree.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/django/utils/tree.py b/django/utils/tree.py
index 5c86e73da8..7f27fc7aac 100644
--- a/django/utils/tree.py
+++ b/django/utils/tree.py
@@ -5,7 +5,7 @@ ORM.
import copy
-from django.utils.encoding import force_str, force_text
+from django.utils.encoding import force_text
class Node:
@@ -45,10 +45,10 @@ class Node:
def __str__(self):
template = '(NOT (%s: %s))' if self.negated else '(%s: %s)'
- return force_str(template % (self.connector, ', '.join(force_text(c) for c in self.children)))
+ return template % (self.connector, ', '.join(force_text(c) for c in self.children))
def __repr__(self):
- return str("<%s: %s>") % (self.__class__.__name__, self)
+ return "<%s: %s>" % (self.__class__.__name__, self)
def __deepcopy__(self, memodict):
"""