summaryrefslogtreecommitdiff
path: root/sleekxmpp
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2011-08-04 20:34:23 -0700
committerLance Stout <lancestout@gmail.com>2011-08-04 20:34:23 -0700
commitcaec2976d7788dba75a82dfb9079b57c96ef7b47 (patch)
tree26bdd155828637b5a6a3cc07e3a59a8b3b6ce3e9 /sleekxmpp
parent4d8933abdf4a190493f2762d423f469f6d8b30a9 (diff)
downloadslixmpp-caec2976d7788dba75a82dfb9079b57c96ef7b47.tar.gz
slixmpp-caec2976d7788dba75a82dfb9079b57c96ef7b47.tar.bz2
slixmpp-caec2976d7788dba75a82dfb9079b57c96ef7b47.tar.xz
slixmpp-caec2976d7788dba75a82dfb9079b57c96ef7b47.zip
Fix Python3 bug.
Use int() instead of long()
Diffstat (limited to 'sleekxmpp')
-rw-r--r--sleekxmpp/thirdparty/mini_dateutil.py4
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)