comparison babel/dates.py @ 258:5f3534425eab

Fix typo in [271] that slipped into the check-in.
author cmlenz
date Wed, 15 Aug 2007 13:13:24 +0000
parents ea9da47e35bc
children cd2d75cf4b43
comparison
equal deleted inserted replaced
257:ea9da47e35bc 258:5f3534425eab
365 <http://www.unicode.org/reports/tr35/#Time_Zone_Fallback>`_ 365 <http://www.unicode.org/reports/tr35/#Time_Zone_Fallback>`_
366 """ 366 """
367 if dt_or_tzinfo is None or isinstance(dt_or_tzinfo, (int, long)): 367 if dt_or_tzinfo is None or isinstance(dt_or_tzinfo, (int, long)):
368 dt = None 368 dt = None
369 tzinfo = UTC 369 tzinfo = UTC
370 elif isinstance(dt_or_tzinfo, (date, time)): 370 elif isinstance(dt_or_tzinfo, (datetime, time)):
371 dt = dt_or_tzinfo 371 dt = dt_or_tzinfo
372 if dt.tzinfo is not None: 372 if dt.tzinfo is not None:
373 tzinfo = dt.tzinfo 373 tzinfo = dt.tzinfo
374 else: 374 else:
375 tzinfo = UTC 375 tzinfo = UTC
Copyright (C) 2012-2017 Edgewall Software