From: jamesbunton Date: Fri, 20 Oct 2006 08:48:29 +0000 (+0000) Subject: * Python 2.5 doesn't always return longs from struct.unpack, so we have to be clever... X-Git-Url: https://code.delx.au/pymsnt/commitdiff_plain/a6ae4690a96b9e5cbced7616da83f3eee2c13235 * Python 2.5 doesn't always return longs from struct.unpack, so we have to be cleverer when turning things into hexadecimal. git-svn-id: http://delx.cjb.net/svn/pymsnt/trunk@230 55fbd22a-6204-0410-b2f0-b6c764c7e90a committer: jamesbunton --- diff --git a/src/legacy/msn/msnp11chl.py b/src/legacy/msn/msnp11chl.py index 39a7e9b..8eb22b2 100644 --- a/src/legacy/msn/msnp11chl.py +++ b/src/legacy/msn/msnp11chl.py @@ -55,7 +55,7 @@ def doChallenge(chlData): out = "" for x in longs: x = hex(x) - x = x[2:-1] + x = x[2:].strip("L") x = x.zfill(16) out += x.lower()