#NEWLINE# def __init__( self , netcode ) : #NEWLINE# #INDENT# url_stub = { #NEWLINE# #INDENT# 'BTC' : 'blockexplorer.com' , #NEWLINE# 'XTN' : 'testnet.blockexplorer.com' , #NEWLINE# #UNINDENT# } . get ( netcode ) #NEWLINE# if ( url_stub is None ) : #NEWLINE# #INDENT# raise ValueError ( ( 'unsupported netcode %s' % netcode ) ) #NEWLINE# #UNINDENT# self . url = ( 'http://%s/api' % url_stub )