tdo not import dns on android - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit f583fcfedbd6e9b7a00caec9f88452f6d61938fd DIR parent 3f1e4ae3b1a8ced14c0e87355af2d365b2ff47f0 HTML Author: ThomasV <thomasv@gitorious> Date: Tue, 18 Aug 2015 12:15:56 +0200 do not import dns on android Diffstat: M electrum | 3 ++- M lib/bitcoin.py | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) --- DIR diff --git a/electrum b/electrum t@@ -37,7 +37,8 @@ elif is_bundle and sys.platform=='darwin': # pure-python dependencies need to be imported here for pyinstaller try: - import dns + if not is_android: + import dns import aes import ecdsa import requests DIR diff --git a/lib/bitcoin.py b/lib/bitcoin.py t@@ -201,6 +201,7 @@ def hash_160(public_key): md.update(sha256(public_key)) return md.digest() except Exception: + # not available in Android SL4a import ripemd md = ripemd.new(sha256(public_key)) return md.digest()