PEP8 linting

This commit is contained in:
Salvatore Ingala
2019-10-08 18:21:52 +07:00
parent ed0cb4f632
commit 2a5dd48950
9 changed files with 32 additions and 20 deletions

View File

@@ -8,6 +8,7 @@ import pisa.conf as conf
HOST = 'localhost'
PORT = 9814
class StructuredMessage(object):
def __init__(self, message, **kwargs):
self.message = message
@@ -15,7 +16,7 @@ class StructuredMessage(object):
self.kwargs = kwargs
def __str__(self):
return json.dumps({ **self.kwargs, "message": self.message, "time": self.time })
return json.dumps({**self.kwargs, "message": self.message, "time": self.time})
M = StructuredMessage # to improve readability
@@ -31,4 +32,3 @@ logging.basicConfig(format='%(message)s', level=logging.INFO, handlers=[
# TODO: Check if a long lived connection like this may create problems (timeouts)
bitcoin_cli = AuthServiceProxy("http://%s:%s@%s:%d" % (conf.BTC_RPC_USER, conf.BTC_RPC_PASSWD, conf.BTC_RPC_HOST,
conf.BTC_RPC_PORT))