mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +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:
		| @@ -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]) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user