URI: 
       tUse yapf to format code. - obelisk - Electrum server using libbitcoin as its backend
  HTML git clone https://git.parazyd.org/obelisk
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit e078c2c4ef52875ee4c0233a83640d75a711fa3c
   DIR parent 926c41406c64af4ea67554d9253e14782f5b0428
  HTML Author: parazyd <parazyd@dyne.org>
       Date:   Wed,  7 Apr 2021 16:08:20 +0200
       
       Use yapf to format code.
       
       Diffstat:
         M electrumobelisk/protocol.py         |      10 +++-------
         M obelisk.py                          |      19 +++++++------------
       
       2 files changed, 10 insertions(+), 19 deletions(-)
       ---
   DIR diff --git a/electrumobelisk/protocol.py b/electrumobelisk/protocol.py
       t@@ -20,8 +20,7 @@ import json
        VERSION = 0.0
        DONATION_ADDR = "bc1q7an9p5pz6pjwjk4r48zke2yfaevafzpglg26mz"
        
       -BANNER = (
       -    """
       +BANNER = ("""
        Welcome to obelisk
        
        "Tools for the people"
       t@@ -30,14 +29,11 @@ obelisk is a server that uses libbitcoin-server as its backend.
        Source code can be found at: https://github.com/parazyd/obelisk
        
        Please consider donating: %s
       -"""
       -    % DONATION_ADDR
       -)
       +""" % DONATION_ADDR)
        
        
        class ElectrumProtocol(asyncio.Protocol):
            """TBD"""
       -
            def __init__(self, log, chain, endpoints, server_cfg):
                self.log = log
                self.endpoints = endpoints
       t@@ -63,7 +59,7 @@ class ElectrumProtocol(asyncio.Protocol):
                        continue
                    while lb != -1:
                        line = recv_buf[:lb].rstrip()
       -                recv_buf = recv_buf[lb + 1 :]
       +                recv_buf = recv_buf[lb + 1:]
                        lb = recv_buf.find(b"\n")
                        try:
                            line = line.decode("utf-8")
   DIR diff --git a/obelisk.py b/obelisk.py
       t@@ -34,24 +34,19 @@ def logger_config(log, config):
                    "obelisk",
                    "log_format",
                    fallback="%(asctime)s\t%(levelname)s\t%(message)s",
       -        )
       -    )
       +        ))
            logstream = StreamHandler()
            logstream.setFormatter(fmt)
            logstream.setLevel(
       -        config.get("obelisk", "log_level_stdout", fallback="DEBUG")
       -    )
       +        config.get("obelisk", "log_level_stdout", fallback="DEBUG"))
            log.addHandler(logstream)
            filename = config.get("obelisk", "log_file_location", fallback="")
            if len(filename.strip()) == 0:
                filename = join(gettempdir(), "obelisk.log")
            logfile = FileHandler(
                filename,
       -        mode=(
       -            "a"
       -            if config.get("obelisk", "append_log", fallback="false")
       -            else "w"
       -        ),
       +        mode=("a" if config.get("obelisk", "append_log", fallback="false") else
       +              "w"),
            )
            logfile.setFormatter(fmt)
            logfile.setLevel(DEBUG)
       t@@ -85,9 +80,9 @@ async def run_electrum_server(config, chain):
                certfile, keyfile = get_certs(config)
                log.debug("Using TLS with keypair: %s , %s", certfile, keyfile)
        
       -    broadcast_method = config.get(
       -        "obelisk", "broadcast_method", fallback="tor"
       -    )
       +    broadcast_method = config.get("obelisk",
       +                                  "broadcast_method",
       +                                  fallback="tor")
            tor_host = config.get("obelisk", "tor_host", fallback="localhost")
            tor_port = int(config.get("obelisk", "tor_port", fallback=9050))