mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-11-24 03:00:15 +00:00
Fix Python3 bug.
Use int() instead of long()
This commit is contained in:
parent
4d8933abdf
commit
caec2976d7
1 changed files with 2 additions and 2 deletions
4
sleekxmpp/thirdparty/mini_dateutil.py
vendored
4
sleekxmpp/thirdparty/mini_dateutil.py
vendored
|
@ -226,7 +226,7 @@ except:
|
||||||
if m.group('frac'):
|
if m.group('frac'):
|
||||||
frac = m.group('frac')
|
frac = m.group('frac')
|
||||||
power = len(frac)
|
power = len(frac)
|
||||||
frac = long(frac) / 10.0 ** power
|
frac = int(frac) / 10.0 ** power
|
||||||
|
|
||||||
if m.group('hour'):
|
if m.group('hour'):
|
||||||
h = vals['hour']
|
h = vals['hour']
|
||||||
|
@ -260,7 +260,7 @@ except:
|
||||||
|
|
||||||
# add optional minutes
|
# add optional minutes
|
||||||
if tzm != None:
|
if tzm != None:
|
||||||
tzm = long(tzm)
|
tzm = int(tzm)
|
||||||
offsetmins += tzm if offsetmins > 0 else -tzm
|
offsetmins += tzm if offsetmins > 0 else -tzm
|
||||||
|
|
||||||
tz = _get_fixed_offset_tz(offsetmins)
|
tz = _get_fixed_offset_tz(offsetmins)
|
||||||
|
|
Loading…
Reference in a new issue