Commit 833e9611 authored by Guido van Rossum's avatar Guido van Rossum

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

was getting complaints from pychecker.)
parent 9ae562ef
......@@ -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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment