Skip to content

Commit 7574a9a

Browse files
author
georg.brandl
committed
#3345: fix docstring.
git-svn-id: http://svn.python.org/projects/python/trunk@65039 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent 1bfbc22 commit 7574a9a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Diff for: Lib/CGIHTTPServer.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -70,17 +70,18 @@ def send_head(self):
7070
return SimpleHTTPServer.SimpleHTTPRequestHandler.send_head(self)
7171

7272
def is_cgi(self):
73-
"""Test whether self.path corresponds to a CGI script.
73+
"""Test whether self.path corresponds to a CGI script,
74+
and return a boolean.
7475
75-
Return a tuple (dir, rest) if self.path requires running a
76-
CGI script, None if not. Note that rest begins with a
76+
This function sets self.cgi_info to a tuple (dir, rest)
77+
when it returns True, where dir is the directory part before
78+
the CGI script name. Note that rest begins with a
7779
slash if it is not empty.
7880
7981
The default implementation tests whether the path
8082
begins with one of the strings in the list
8183
self.cgi_directories (and the next character is a '/'
8284
or the end of the string).
83-
8485
"""
8586

8687
path = self.path

0 commit comments

Comments
 (0)