fix
authorThomasV <thomasv@gitorious>
Wed, 9 Nov 2011 16:24:07 +0000 (17:24 +0100)
committerThomasV <thomasv@gitorious>
Wed, 9 Nov 2011 16:24:07 +0000 (17:24 +0100)
client/electrum.py

index 3496597..680af5c 100755 (executable)
@@ -144,7 +144,7 @@ def ASecretToSecret(key):
 
 
 def int_to_hex(i, length=1):
-    s = hex(i)[2:]
+    s = hex(i)[2:].rstrip('L')
     s = "0"*(2*length - len(s)) + s
     return s.decode('hex')[::-1].encode('hex')