summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2012-08-04 11:24:30 +0200
committerAymeric Augustin <aymeric.augustin@m4x.org>2012-08-07 12:00:24 +0200
commit64e2e3562705dfee31a0922bbbe14bdf49d242d7 (patch)
tree5b6f1eb9d2c4bac34140fb3cffc02a4a2c2febe6 /django
parent9e8df02d685e1ce6181f285d1c487cd01e65ca74 (diff)
[py3] Ported django.utils.tzinfo.
Diffstat (limited to 'django')
-rw-r--r--django/utils/tzinfo.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/utils/tzinfo.py b/django/utils/tzinfo.py
index c40b430411..208b7e7191 100644
--- a/django/utils/tzinfo.py
+++ b/django/utils/tzinfo.py
@@ -5,7 +5,7 @@ from __future__ import unicode_literals
import time
from datetime import timedelta, tzinfo
-from django.utils.encoding import smart_text, smart_bytes, DEFAULT_LOCALE_ENCODING
+from django.utils.encoding import smart_text, smart_str, DEFAULT_LOCALE_ENCODING
# Python's doc say: "A tzinfo subclass must have an __init__() method that can
# be called with no arguments". FixedOffset and LocalTimezone don't honor this
@@ -53,7 +53,7 @@ class LocalTimezone(tzinfo):
self._tzname = self.tzname(dt)
def __repr__(self):
- return smart_bytes(self._tzname)
+ return smart_str(self._tzname)
def __getinitargs__(self):
return self.__dt,