#NEWLINE# def connect_to_local( ) : #NEWLINE# #INDENT# '\n    Connect to default bitcoin instance owned by this user, on this machine.\n    \n    Returns a :class:`~bitcoin.connection.BitcoinConnection` object.\n    ' #NEWLINE# from bitcoin.connection import BitcoinConnection #NEWLINE# from bitcoin.config import read_default_config #NEWLINE# cfg = read_default_config ( ) #NEWLINE# port = int ( cfg . get ( 'rpcport' , '8332' ) ) #NEWLINE# return BitcoinConnection ( cfg [ 'rpcuser' ] , cfg [ 'rpcpassword' ] , 'localhost' , port )