diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2012-08-11 22:18:09 +0200 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2012-08-12 14:44:40 +0200 |
| commit | 2bb2eecb6358ea4243ab7a6286048b86302f5128 (patch) | |
| tree | 76d3862d93016e0049496dd3171eb774406d53f0 /django/core | |
| parent | dbb63e56eaa6e2e2a574d4327464332b3ef9f970 (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.py | 3 |
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 '') |
