summaryrefslogtreecommitdiffstats
path: root/Lib/CGIHTTPServer.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-07-16 22:09:17 (GMT)
committerGeorg Brandl <georg@python.org>2008-07-16 22:09:17 (GMT)
commit4ed9be733b58712e3e91dafa5ab13cc0a6d99702 (patch)
treed31687633e6bae86691c1a897c83729e43ad54e7 /Lib/CGIHTTPServer.py
parentb9b68ae7a5176605ec482420cd8030bc56b144e1 (diff)
downloadcpython-4ed9be733b58712e3e91dafa5ab13cc0a6d99702.zip
cpython-4ed9be733b58712e3e91dafa5ab13cc0a6d99702.tar.gz
cpython-4ed9be733b58712e3e91dafa5ab13cc0a6d99702.tar.bz2
#3345: fix docstring.
Diffstat (limited to 'Lib/CGIHTTPServer.py')
-rw-r--r--Lib/CGIHTTPServer.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/Lib/CGIHTTPServer.py b/Lib/CGIHTTPServer.py
index 06278df..71f0368 100644
--- a/Lib/CGIHTTPServer.py
+++ b/Lib/CGIHTTPServer.py
@@ -70,17 +70,18 @@ class CGIHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
return SimpleHTTPServer.SimpleHTTPRequestHandler.send_head(self)
def is_cgi(self):
- """Test whether self.path corresponds to a CGI script.
+ """Test whether self.path corresponds to a CGI script,
+ and return a boolean.
- Return a tuple (dir, rest) if self.path requires running a
- CGI script, None if not. Note that rest begins with a
+ This function sets self.cgi_info to a tuple (dir, rest)
+ when it returns True, where dir is the directory part before
+ the CGI script name. Note that rest begins with a
slash if it is not empty.
The default implementation tests whether the path
begins with one of the strings in the list
self.cgi_directories (and the next character is a '/'
or the end of the string).
-
"""
path = self.path