summaryrefslogtreecommitdiff
path: root/django/template
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2012-08-11 22:18:09 +0200
committerAymeric Augustin <aymeric.augustin@m4x.org>2012-08-12 14:44:40 +0200
commit2bb2eecb6358ea4243ab7a6286048b86302f5128 (patch)
tree76d3862d93016e0049496dd3171eb774406d53f0 /django/template
parentdbb63e56eaa6e2e2a574d4327464332b3ef9f970 (diff)
[py3] Removed redundant __str__ methods.
These classes already have an identical __unicode__ method, which will be used after an upcoming refactoring.
Diffstat (limited to 'django/template')
-rw-r--r--django/template/base.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/django/template/base.py b/django/template/base.py
index 661d8c092a..4dcba6dd2b 100644
--- a/django/template/base.py
+++ b/django/template/base.py
@@ -85,9 +85,6 @@ class VariableDoesNotExist(Exception):
self.msg = msg
self.params = params
- def __str__(self):
- return six.text_type(self).encode('utf-8')
-
def __unicode__(self):
return self.msg % tuple([force_text(p, errors='replace')
for p in self.params])