]> code.delx.au - pymsnt/commitdiff
* Python 2.5 doesn't always return longs from struct.unpack, so we have to be clever...
authorjamesbunton <jamesbunton@55fbd22a-6204-0410-b2f0-b6c764c7e90a>
Fri, 20 Oct 2006 08:48:29 +0000 (08:48 +0000)
committerjamesbunton <jamesbunton@55fbd22a-6204-0410-b2f0-b6c764c7e90a>
Fri, 20 Oct 2006 08:48:29 +0000 (08:48 +0000)
git-svn-id: http://delx.cjb.net/svn/pymsnt/trunk@230 55fbd22a-6204-0410-b2f0-b6c764c7e90a

committer: jamesbunton <jamesbunton@55fbd22a-6204-0410-b2f0-b6c764c7e90a>

src/legacy/msn/msnp11chl.py

index 39a7e9bada307f4fa41f89f7685f525afdb63c59..8eb22b2f373da5c65f0dfe068d1f459fee230f10 100644 (file)
@@ -55,7 +55,7 @@ def doChallenge(chlData):
        out = ""
        for x in longs:
                x = hex(x)
        out = ""
        for x in longs:
                x = hex(x)
-               x = x[2:-1]
+               x = x[2:].strip("L")
                x = x.zfill(16)
                out += x.lower()
        
                x = x.zfill(16)
                out += x.lower()