Mercurial > public > mercurial-scm > hg
comparison mercurial/changelog.py @ 14004:97ed99d1f419
eliminate various naked except clauses
author | Idan Kamara <idankk86@gmail.com> |
---|---|
date | Sat, 23 Apr 2011 00:51:25 +0300 |
parents | 41d0ed2c79df |
children | c1cca38818b9 |
comparison
equal
deleted
inserted
replaced
14003:ba734ff5cadd | 14004:97ed99d1f419 |
---|---|
183 if len(extra_data) != 3: | 183 if len(extra_data) != 3: |
184 time = float(extra_data.pop(0)) | 184 time = float(extra_data.pop(0)) |
185 try: | 185 try: |
186 # various tools did silly things with the time zone field. | 186 # various tools did silly things with the time zone field. |
187 timezone = int(extra_data[0]) | 187 timezone = int(extra_data[0]) |
188 except: | 188 except ValueError: |
189 timezone = 0 | 189 timezone = 0 |
190 extra = {} | 190 extra = {} |
191 else: | 191 else: |
192 time, timezone, extra = extra_data | 192 time, timezone, extra = extra_data |
193 time, timezone = float(time), int(timezone) | 193 time, timezone = float(time), int(timezone) |