URI: 
       tdo not accet testnet addresses in bitcoin.is_address - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit cf5328b143331fcfa3d1ada3662e9cf72b9ea57d
   DIR parent 604d5d432c4efc8614a3d306a71dd61e37297d31
  HTML Author: ThomasV <thomasv@gitorious>
       Date:   Thu,  2 Jul 2015 08:48:48 +0200
       
       do not accet testnet addresses in bitcoin.is_address
       
       Diffstat:
         M lib/bitcoin.py                      |       5 ++++-
       
       1 file changed, 4 insertions(+), 1 deletion(-)
       ---
   DIR diff --git a/lib/bitcoin.py b/lib/bitcoin.py
       t@@ -352,11 +352,14 @@ def is_valid(addr):
        
        def is_address(addr):
            ADDRESS_RE = re.compile('[1-9A-HJ-NP-Za-km-z]{26,}\\Z')
       -    if not ADDRESS_RE.match(addr): return False
       +    if not ADDRESS_RE.match(addr):
       +        return False
            try:
                addrtype, h = bc_address_to_hash_160(addr)
            except Exception:
                return False
       +    if addrtype != 0:
       +        return False
            return addr == hash_160_to_bc_address(h, addrtype)