]> git.ipfire.org Git - thirdparty/babel.git/commitdiff
Fix typo in [271] that slipped into the check-in.
authorChristopher Lenz <cmlenz@gmail.com>
Wed, 15 Aug 2007 13:13:24 +0000 (13:13 +0000)
committerChristopher Lenz <cmlenz@gmail.com>
Wed, 15 Aug 2007 13:13:24 +0000 (13:13 +0000)
babel/dates.py

index d9f3a6409dcb2972cd502d5c8116533afc33641e..daea499988d8b636d863d89d45a3340364f57f7d 100644 (file)
@@ -367,7 +367,7 @@ def get_timezone_name(dt_or_tzinfo=None, width='long', uncommon=False,
     if dt_or_tzinfo is None or isinstance(dt_or_tzinfo, (int, long)):
         dt = None
         tzinfo = UTC
-    elif isinstance(dt_or_tzinfo, (date, time)):
+    elif isinstance(dt_or_tzinfo, (datetime, time)):
         dt = dt_or_tzinfo
         if dt.tzinfo is not None:
             tzinfo = dt.tzinfo