~ubuntu-branches/ubuntu/wily/python-tz/wily

« back to all changes in this revision

Viewing changes to pytz/tzfile.py

  • Committer: Package Import Robot
  • Author(s): Arnaud Fontaine
  • Date: 2012-06-06 11:10:31 UTC
  • mto: (17.1.1 sid)
  • mto: This revision was merged to the branch mainline in revision 17.
  • Revision ID: package-import@ubuntu.com-20120606111031-lh9jxx23y0dzzv90
Tags: upstream-2012c
ImportĀ upstreamĀ versionĀ 2012c

Show diffs side-by-side

added added

removed removed

Lines of Context:
97
97
                        break
98
98
                dst = inf[0] - prev_inf[0] # dst offset
99
99
 
100
 
                if dst <= 0: # Bad dst? Look further.
 
100
                # Bad dst? Look further. DST > 24 hours happens when
 
101
                # a timzone has moved across the international dateline.
 
102
                if dst <= 0 or dst > 3600*3:
101
103
                    for j in range(i+1, len(transitions)):
102
104
                        stdinf = ttinfo[lindexes[j]]
103
105
                        if not stdinf[1]: