Fix the signature of log_error(). (A subclass that did the right thing

was getting complaints from pychecker.)
This commit is contained in:
Guido van Rossum 2007-01-10 23:12:56 +00:00
parent 9ae562efb1
commit 833e9611b3
1 changed files with 2 additions and 2 deletions

View File

@ -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.