summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-01-10 23:12:56 +0000
committerGuido van Rossum <guido@python.org>2007-01-10 23:12:56 +0000
commit833e9611b3173d454bf2c78bc7f60fa79ad8b5ee (patch)
tree04ea9934a95efd30f9139ab065b4e22318d03a0b
parent9ae562efb1f725f12fba521847288332791bf895 (diff)
downloadcpython-git-833e9611b3173d454bf2c78bc7f60fa79ad8b5ee.tar.gz
Fix the signature of log_error(). (A subclass that did the right thing
was getting complaints from pychecker.)
-rw-r--r--Lib/BaseHTTPServer.py4
1 files changed, 2 insertions, 2 deletions
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.