jgarzik / python-bitcoinrpc

Python interface to bitcoin's JSON-RPC API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

nanotube opened this issue · comments

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 :) )

fix merged