summaryrefslogtreecommitdiff
path: root/django/core
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/core
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/core')
-rw-r--r--django/core/files/base.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/django/core/files/base.py b/django/core/files/base.py
index d0b25250a5..87fa8bc8ec 100644
--- a/django/core/files/base.py
+++ b/django/core/files/base.py
@@ -17,9 +17,6 @@ class File(FileProxyMixin):
if hasattr(file, 'mode'):
self.mode = file.mode
- def __str__(self):
- return smart_bytes(self.name or '')
-
def __unicode__(self):
return smart_text(self.name or '')