Browse Source

python3 updates

seed_v14
ThomasV 8 years ago
parent
commit
d8e37644d3
  1. 2
      lib/coinchooser.py
  2. 4
      plugins/trustedcoin/trustedcoin.py

2
lib/coinchooser.py

@ -68,7 +68,7 @@ class PRNG:
return seq[self.randint(0, len(seq))]
def shuffle(self, x):
for i in reversed(xrange(1, len(x))):
for i in reversed(range(1, len(x))):
# pick an element in x[:i+1] with which to exchange x[i]
j = self.randint(0, i+1)
x[i], x[j] = x[j], x[i]

4
plugins/trustedcoin/trustedcoin.py

@ -29,8 +29,8 @@ import re
import requests
import json
from hashlib import sha256
from urlparse import urljoin
from urllib import quote
from urllib.parse import urljoin
from urllib.parse import quote
import electrum
from electrum import bitcoin

Loading…
Cancel
Save