jgarzik / python-bitcoinrpc

Python interface to bitcoin's JSON-RPC API
GNU Lesser General Public License v2.1
642 stars 307 forks source link

fix for __init__.py to make it work from within other packages #1

Closed nanotube closed 13 years ago

nanotube commented 13 years ago

a quick fix to your python-bitcoinrpc code: in init.py, s/jsonrpc.// making it look like this:

from json import loads, dumps, JSONEncodeException, JSONDecodeException from proxy import ServiceProxy, JSONRPCException

doesn't break anything, and makes it work when you stick it inside another package and try to import it (which i do with supybot :) )

jgarzik commented 13 years ago

fix merged