diff options
| author | Guido van Rossum <guido@python.org> | 2007-01-10 23:12:56 (GMT) |
|---|---|---|
| committer | Guido van Rossum <guido@python.org> | 2007-01-10 23:12:56 (GMT) |
| commit | 833e9611b3173d454bf2c78bc7f60fa79ad8b5ee (patch) | |
| tree | 04ea9934a95efd30f9139ab065b4e22318d03a0b /Lib/BaseHTTPServer.py | |
| parent | 9ae562efb1f725f12fba521847288332791bf895 (diff) | |
| download | cpython-833e9611b3173d454bf2c78bc7f60fa79ad8b5ee.zip cpython-833e9611b3173d454bf2c78bc7f60fa79ad8b5ee.tar.gz cpython-833e9611b3173d454bf2c78bc7f60fa79ad8b5ee.tar.bz2 | |
Fix the signature of log_error(). (A subclass that did the right thing
was getting complaints from pychecker.)
Diffstat (limited to 'Lib/BaseHTTPServer.py')
| -rw-r--r-- | Lib/BaseHTTPServer.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/BaseHTTPServer.py b/Lib/BaseHTTPServer.py index 396e4d6..e4e1a14 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. |
