1
0
mirror of https://github.com/django/django.git synced 2025-10-30 17:16:10 +00:00

[py3] Removed redundant __str__ methods.

These classes already have an identical __unicode__ method, which
will be used after an upcoming refactoring.
This commit is contained in:
Aymeric Augustin
2012-08-11 22:18:09 +02:00
parent dbb63e56ea
commit 2bb2eecb63
6 changed files with 0 additions and 18 deletions

View File

@@ -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])