Fix Python3 bug.

Use int() instead of long()
This commit is contained in:
Lance Stout 2011-08-04 20:34:23 -07:00
parent 4d8933abdf
commit caec2976d7

View file

@ -226,7 +226,7 @@ except:
if m.group('frac'):
frac = m.group('frac')
power = len(frac)
frac = long(frac) / 10.0 ** power
frac = int(frac) / 10.0 ** power
if m.group('hour'):
h = vals['hour']
@ -260,7 +260,7 @@ except:
# add optional minutes
if tzm != None:
tzm = long(tzm)
tzm = int(tzm)
offsetmins += tzm if offsetmins > 0 else -tzm
tz = _get_fixed_offset_tz(offsetmins)