From 6c92e8e7d999ac4f1be6940f8f57142c1d7ef2bd Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Sat, 13 Aug 2022 13:32:22 +0100 Subject: [PATCH] Reformat code --- api/views.py | 2 -- modules/chankeep.py | 2 +- modules/network.py | 3 +-- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/api/views.py b/api/views.py index 60765c0..9bb2e97 100644 --- a/api/views.py +++ b/api/views.py @@ -487,7 +487,6 @@ class API(object): listinfo = chankeep.getListInfo(net) return dumps({"success": True, "listinfo": listinfo}) - @app.route("/irc/msg////", methods=["PUT"]) @login_required def irc_send_message(self, request, net, num, channel): @@ -532,4 +531,3 @@ class API(object): if name not in main.IRCPool.keys(): return dumps({"success": False, "reason": f"relay {num} not on {net}"}) return dumps({"nickname": main.IRCPool[name].nickname}) - diff --git a/modules/chankeep.py b/modules/chankeep.py index 0de8baf..7279e97 100644 --- a/modules/chankeep.py +++ b/modules/chankeep.py @@ -384,6 +384,7 @@ def _initialList(net, num, listinfo, chanlimit): # return (listinfo, mean, sigrelay, relay) + def convert(data): """ Recursively convert a dictionary. @@ -411,4 +412,3 @@ def initialList(net, num, listinfo, chanlimit): See above docstring. """ deferToThread(_initialList, net, num, deepcopy(listinfo), chanlimit) - diff --git a/modules/network.py b/modules/network.py index 233b76b..b07f831 100644 --- a/modules/network.py +++ b/modules/network.py @@ -1,5 +1,4 @@ from copy import deepcopy -from modules import provision from twisted.internet import reactor from twisted.internet.ssl import DefaultOpenSSLContextFactory @@ -8,8 +7,8 @@ import main from core.bot import IRCBotFactory from modules import alias from modules.chankeep import nukeNetwork -from modules.regproc import needToRegister from modules.provision import provisionRelay +from modules.regproc import needToRegister from utils.deliver_relay_commands import deliverRelayCommands from utils.get import getRelay from utils.logging.log import log