# HG changeset patch # User cmlenz # Date 1187183604 0 # Node ID 25c7ccf96f3b171ac6c28f9c661ed2292f6e0c2a # Parent 00b83943f79e83d8670a04b764434b46b4aa6c17 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