From: Guido van Rossum Date: Wed, 10 Jan 2007 23:12:56 +0000 (+0000) Subject: Fix the signature of log_error(). (A subclass that did the right thing X-Git-Tag: v2.6a1~2295 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=833e9611b3173d454bf2c78bc7f60fa79ad8b5ee;p=python Fix the signature of log_error(). (A subclass that did the right thing was getting complaints from pychecker.) --- diff --git a/Lib/BaseHTTPServer.py b/Lib/BaseHTTPServer.py index 396e4d6a3b..e4e1a148b8 100644 --- a/Lib/BaseHTTPServer.py +++ b/Lib/BaseHTTPServer.py @@ -396,7 +396,7 @@ class BaseHTTPRequestHandler(SocketServer.StreamRequestHandler): self.log_message('"%s" %s %s', self.requestline, str(code), str(size)) - def log_error(self, *args): + def log_error(self, format, *args): """Log an error. This is called when a request cannot be fulfilled. By @@ -408,7 +408,7 @@ class BaseHTTPRequestHandler(SocketServer.StreamRequestHandler): """ - self.log_message(*args) + self.log_message(format, *args) def log_message(self, format, *args): """Log an arbitrary message.