]> granicus.if.org Git - python/commitdiff
Fix the signature of log_error(). (A subclass that did the right thing
authorGuido van Rossum <guido@python.org>
Wed, 10 Jan 2007 23:12:56 +0000 (23:12 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 10 Jan 2007 23:12:56 +0000 (23:12 +0000)
was getting complaints from pychecker.)

Lib/BaseHTTPServer.py

index 396e4d6a3b48797d5bebcbd50c6702c913fcb072..e4e1a148b8cccbf52222adb5f053d1a46385a56d 100644 (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.