diff --git a/Lib/BaseHTTPServer.py b/Lib/BaseHTTPServer.py index 7c8975d3a42..4c9645ddeed 100644 --- a/Lib/BaseHTTPServer.py +++ b/Lib/BaseHTTPServer.py @@ -252,7 +252,7 @@ class BaseHTTPRequestHandler(SocketServer.StreamRequestHandler): self.headers = self.MessageClass(self.rfile, 0) mname = 'do_' + command if not hasattr(self, mname): - self.send_error(501, "Unsupported method (%s)" % `mname`) + self.send_error(501, "Unsupported method (%s)" % `command`) return method = getattr(self, mname) method()