# HG changeset patch # User cmlenz # Date 1187183604 0 # Node ID 0355a5180ff592d5d14e684609273de9c859636e # Parent f9f6f740b595333fe14590e643f5821fab3b20ad Fix typo in [271] that slipped into the check-in. diff --git a/babel/dates.py b/babel/dates.py --- 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