From: Christopher Lenz Date: Wed, 15 Aug 2007 13:13:24 +0000 (+0000) Subject: Fix typo in [271] that slipped into the check-in. X-Git-Tag: 1.0~393 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f2f882724a3c3537fa7eafbd7a8fd552c0e259f;p=thirdparty%2Fbabel.git Fix typo in [271] that slipped into the check-in. --- diff --git a/babel/dates.py b/babel/dates.py index d9f3a640..daea4999 100644 --- a/babel/dates.py +++ b/babel/dates.py @@ -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