pep8 and utility cleanup
[electrum-server.git] / backends / libbitcoin / history1 / __init__.py
index 3bce9ab..be555b1 100644 (file)
@@ -1,7 +1,9 @@
-import _history
-from bitcoin import bind, _1, _2
 import json
 
+from bitcoin import bind, _1, _2
+import _history
+
+
 def wrap_finish(handle_finish, ec, result_json):
     try:
         result = json.loads(result_json)
@@ -11,8 +13,8 @@ def wrap_finish(handle_finish, ec, result_json):
     else:
         handle_finish(ec, result)
 
+
 def payment_history(service, chain, txpool, membuf, address, finish):
     _history.payment_history(service.internal_ptr, chain.internal_ptr,
                              txpool.internal_ptr, membuf.internal_ptr,
                              str(address), bind(wrap_finish, finish, _1, _2))
-