]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
changed some commas into percent signs
authorGuido van Rossum <guido@python.org>
Tue, 29 Aug 1995 19:18:24 +0000 (19:18 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 29 Aug 1995 19:18:24 +0000 (19:18 +0000)
Lib/CGIHTTPServer.py

index eeb51fe2ff6bf230d075ab893b5908104a32f2e0..bcb2ef4b2faf8e3689084e3a00a17e923a78f5df 100644 (file)
@@ -6,7 +6,7 @@ requests to cgi-bin scripts.
 """
 
 
-__version__ = "0.2"
+__version__ = "0.3"
 
 
 import os
@@ -89,14 +89,14 @@ class CGIHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
        scriptname = dir + '/' + script
        scriptfile = self.translate_path(scriptname)
        if not os.path.exists(scriptfile):
-           self.send_error(404, "No such CGI script (%s)", `scriptname`)
+           self.send_error(404, "No such CGI script (%s)" % `scriptname`)
            return
        if not os.path.isfile(scriptfile):
-           self.send_error(403, "CGI script is not a plain file (%s)",
+           self.send_error(403, "CGI script is not a plain file (%s)" %
                            `scriptname`)
            return
        if not executable(scriptfile):
-           self.send_error(403, "CGI script is not executable (%s)",
+           self.send_error(403, "CGI script is not executable (%s)" %
                            `scriptname`)
            return
        nobody = nobody_uid()