Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[py3] Ported django.utils.tzinfo.

  • Loading branch information...
commit 64e2e3562705dfee31a0922bbbe14bdf49d242d7 1 parent 9e8df02
@aaugustin aaugustin authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/utils/
4 django/utils/
@@ -5,7 +5,7 @@
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 @@ def __init__(self, dt):
self._tzname = self.tzname(dt)
def __repr__(self):
- return smart_bytes(self._tzname)
+ return smart_str(self._tzname)
def __getinitargs__(self):
return self.__dt,
Please sign in to comment.
Something went wrong with that request. Please try again.