From 3aadde4b71df94e84ff4363028086adb38015e38 Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Thu, 2 Mar 2023 00:20:25 -0600 Subject: [PATCH] remove XMLRPC inheritence that overrode a method no longer in existence this is probably from python 2 days; we inherited from SimpleXMLRPCRequestHandler to change the logging, but the method overrode no longer exists so this did nothing --- ircbot/bot.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/ircbot/bot.py b/ircbot/bot.py index fde61b9..54a32c6 100644 --- a/ircbot/bot.py +++ b/ircbot/bot.py @@ -26,14 +26,6 @@ from ircbot.models import Alias, IrcChannel, IrcPlugin, IrcServer log = logging.getLogger('ircbot.bot') -class IrcBotXMLRPCRequestHandler(SimpleXMLRPCRequestHandler): - """Override the basic request handler to change the logging.""" - - def log_message(self, format, *args): - """Use a logger rather than stderr.""" - log.debug("XML-RPC - %s - %s", self.client_address[0], format % args) - - class PrioritizedRegexHandler(collections.namedtuple('Base', ('priority', 'regex', 'callback'))): """Regex handler that still uses the normal handler priority stuff.""" @@ -414,7 +406,7 @@ class IRCBot(irc.client.SimpleIRCClient): # load XML-RPC server self.xmlrpc = SimpleXMLRPCServer((self.server_config.xmlrpc_host, self.server_config.xmlrpc_port), - requestHandler=IrcBotXMLRPCRequestHandler, allow_none=True) + requestHandler=SimpleXMLRPCRequestHandler, allow_none=True) self.xmlrpc.register_introspection_functions() t = threading.Thread(target=self._xmlrpc_listen, args=())