changeset 256:0355a5180ff5 trunk

Fix typo in [271] that slipped into the check-in.
author cmlenz
date Wed, 15 Aug 2007 13:13:24 +0000
parents f9f6f740b595
children 79c72d3a35f6
files babel/dates.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/babel/dates.py
+++ b/babel/dates.py
@@ -367,7 +367,7 @@
     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
Copyright (C) 2012-2017 Edgewall Software