diff options
author | Lance Stout <lancestout@gmail.com> | 2011-08-04 20:34:23 -0700 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2011-08-04 20:34:23 -0700 |
commit | caec2976d7788dba75a82dfb9079b57c96ef7b47 (patch) | |
tree | 26bdd155828637b5a6a3cc07e3a59a8b3b6ce3e9 | |
parent | 4d8933abdf4a190493f2762d423f469f6d8b30a9 (diff) | |
download | slixmpp-caec2976d7788dba75a82dfb9079b57c96ef7b47.tar.gz slixmpp-caec2976d7788dba75a82dfb9079b57c96ef7b47.tar.bz2 slixmpp-caec2976d7788dba75a82dfb9079b57c96ef7b47.tar.xz slixmpp-caec2976d7788dba75a82dfb9079b57c96ef7b47.zip |
Fix Python3 bug.
Use int() instead of long()
-rw-r--r-- | sleekxmpp/thirdparty/mini_dateutil.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sleekxmpp/thirdparty/mini_dateutil.py b/sleekxmpp/thirdparty/mini_dateutil.py index bfb86305..5b3af9a7 100644 --- a/sleekxmpp/thirdparty/mini_dateutil.py +++ b/sleekxmpp/thirdparty/mini_dateutil.py @@ -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) |